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