本帖最后由 zgzxp 于 2023-5-29 12:49 编辑
[C#] 纯文本查看 复制代码 public static bool CheckLicense(string email, string license)
{
if (email == null || license == null)
{
return false;
}
if (license.Length != 192)
{
return false;
}
email = email.ToLowerInvariant();
ulong num = ((ulong)LicenseChecker.smethod_0(email) << 32) + (ulong)LicenseChecker.smethod_1(email);
string text = "";
for (int i = 0; i < 12; i++)
{
int num2 = (int)(num >> 64 - (i + 1) * 5) & 31;
text += Class466.smethod_0(48245)[num2].ToString();
}
if (license.Substring(160, 12) != text)
{
Clipboard.SetDataObject(string.Concat(new string[]
{
license.Substring(0, 32),
"\r\n",
license.Substring(32, 32),
"\r\n",
license.Substring(64, 32),
"\r\n",
license.Substring(96, 32),
"\r\n",
license.Substring(128, 32),
"\r\n",
text,
license.Substring(172, 20)
}));
MessageBox.Show("注册码已复制到剪贴板!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
return license.Substring(160, 12) == text;
}
我直接改造原来的,这样的注册码虽然能组成成功,看起来怪怪的 |