添加crc
This commit is contained in:
commit
537c89677e
1 file changed
+3
-4
+3
-4
@@ -105,11 +105,10 @@ namespace SUNLIGHT_CDKEY
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string a,b;
|
||||
string a, b;
|
||||
|
||||
a = sn_id.Text.Substring(0, 6);
|
||||
|
||||
b = (255-y).ToString()+ (255 - m).ToString()+(255 - d).ToString();
|
||||
a= sn_id.Text.Substring(0, 6);
|
||||
b=(2255-y).ToString()+(255-m).ToString()+(255-d).ToString();
|
||||
|
||||
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user