public MitaniLicense() { MitaniEncrypt encrypt = new MitaniEncrypt(); TextKey = encrypt.GetLicense().Trim(); // Get Key from Text file Expire = encrypt.Expire; // expire encrypt.GenerateKey(); OriginKey = encrypt.EncryptKey; //Path = encrypt.current_path; }
public MitaniLicense(Dictionary <string, string> info) : base(info) { MitaniEncrypt encrypt = new MitaniEncrypt(); userInfo = encrypt.GetLicense(); foreach (var s in userInfo) { if (s.Key == "KEY") { Key = s.Value; } } }