添加crc

This commit is contained in:
sc committed 2024-03-29 22:36:39 +08:00
commit 537c89677e
1 file changed
+1 -2
+1 -2
View File
@@ -108,8 +108,7 @@ namespace SUNLIGHT_CDKEY
string a, b; string a, b;
a= sn_id.Text.Substring(0, 6); a= sn_id.Text.Substring(0, 6);
b=(2255-y).ToString()+(255-m).ToString()+(255-d).ToString();
b = (255-y).ToString()+ (255 - m).ToString()+(255 - d).ToString();
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true); cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
} }