public static string GetLicence() { var licence = Configs.GetValue("LicenceKey"); if (string.IsNullOrEmpty(licence)) { licence = Common.GuId(); Configs.SetValue("LicenceKey", licence); } return(Md5.md5(licence, 32)); }
public static string GetLicence() { var licence = Configs.GetValue("LicenceKey"); if (string.IsNullOrEmpty(licence)) { licence = Common.GuId(); Configs.SetValue("LicenceKey", licence); } return(EncryptProvider.Md5(licence, Internal.MD5Length.L32)); }