Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }