internal static MyLicense ReadLic(string LicKey, string Path) { if (LicKey != AuthKeys._AuthFileKEY) { return(null); } byte[] bs = File.ReadAllBytes(Path); MyLicense lic = (MyLicense)ZipTools.DecompressionObject(bs); return(lic); }
private static void DoGenLic(string PeriodDate, string SignValue, string LicKey, string LicPath, string s1, string s2, string s3) { MyLicense lic = new MyLicense(); if (LicKey != AuthKeys._AuthFileKEY) { return; } lic.PeriodDate = PeriodDate; lic.SignValue = SignValue; byte[] bs = ZipTools.CompressionObject(lic); File.WriteAllBytes(LicPath, bs); }