diff --git a/.vs/winrar-keygen/v17/.suo b/.vs/winrar-keygen/v17/.suo index 2f06ffa..726da24 100644 Binary files a/.vs/winrar-keygen/v17/.suo and b/.vs/winrar-keygen/v17/.suo differ diff --git a/.vs/winrar-keygen/v17/Browse.VC.db b/.vs/winrar-keygen/v17/Browse.VC.db index bf7b227..26b4d47 100644 Binary files a/.vs/winrar-keygen/v17/Browse.VC.db and b/.vs/winrar-keygen/v17/Browse.VC.db differ diff --git a/.vs/winrar-keygen/v17/ipch/AutoPCH/668bd2139634a6e1/_TMAIN.ipch b/.vs/winrar-keygen/v17/ipch/AutoPCH/668bd2139634a6e1/_TMAIN.ipch index bcd93a3..bd3e59f 100644 Binary files a/.vs/winrar-keygen/v17/ipch/AutoPCH/668bd2139634a6e1/_TMAIN.ipch and b/.vs/winrar-keygen/v17/ipch/AutoPCH/668bd2139634a6e1/_TMAIN.ipch differ diff --git a/WinRarConfig.hpp b/WinRarConfig.hpp index 4430049..a71a835 100644 --- a/WinRarConfig.hpp +++ b/WinRarConfig.hpp @@ -482,5 +482,4 @@ public: } } ); -}; - +}; \ No newline at end of file diff --git a/WinRarKeygen.hpp b/WinRarKeygen.hpp index fd95e71..4d5b41f 100644 --- a/WinRarKeygen.hpp +++ b/WinRarKeygen.hpp @@ -189,17 +189,6 @@ public: RegInfo.Items[0] = GeneratePublicKeySM2CompressedFormat(RegInfo.Items[3].c_str()); RegInfo.UID = HelperStringFormat("%.16s%.4s", temp.c_str() + 48, RegInfo.Items[0].c_str()); - /*while (true) { - auto LicenseTypeSignature = Sign(RegInfo.LicenseType.c_str(), RegInfo.LicenseType.length()); - auto LicenseTypeSignatureR = LicenseTypeSignature.r.ToString(16, true); - auto LicenseTypeSignatureS = LicenseTypeSignature.s.ToString(16, true); - if (LicenseTypeSignatureR.length() <= 60 && LicenseTypeSignatureS.length() <= 60) { - RegInfo.Items[1] = HelperStringFormat("60%060s%060s", LicenseTypeSignatureS.c_str(), LicenseTypeSignatureR.c_str()); - break; - } - }*/ - - // Fix InternalError: The length of register data is not correct. while (true) { auto LicenseTypeSignature = Sign(RegInfo.LicenseType.c_str(), RegInfo.LicenseType.length()); auto LicenseTypeSignatureR = LicenseTypeSignature.r.ToString(16, true); @@ -211,23 +200,13 @@ public: LicenseTypeSignatureS.insert(LicenseTypeSignatureS.begin(), 60 - LicenseTypeSignatureS.size(), '0'); } if (LicenseTypeSignatureR.length() == 60 && LicenseTypeSignatureS.length() == 60) { - RegInfo.Items[1] = HelperStringFormat("60%060s%060s", LicenseTypeSignatureS.c_str(), LicenseTypeSignatureR.c_str()); + RegInfo.Items[1] = HelperStringFormat("60%s%s", LicenseTypeSignatureS.c_str(), LicenseTypeSignatureR.c_str()); break; } } temp = RegInfo.UserName + RegInfo.Items[0]; - /*while (true) { - auto UserNameSignature = Sign(temp.c_str(), temp.length()); - auto UserNameSignatureR = UserNameSignature.r.ToString(16, true); - auto UserNameSignatureS = UserNameSignature.s.ToString(16, true); - if (UserNameSignatureR.length() <= 60 || UserNameSignatureS.length() <= 60) { - RegInfo.Items[2] = HelperStringFormat("60%060s%060s", UserNameSignatureS.c_str(), UserNameSignatureR.c_str()); - break; - } - }*/ - // Fix InternalError: The length of register data is not correct. while (true) { auto UserNameSignature = Sign(temp.c_str(), temp.length()); auto UserNameSignatureR = UserNameSignature.r.ToString(16, true); @@ -239,7 +218,7 @@ public: UserNameSignatureS.insert(UserNameSignatureS.begin(), 60 - UserNameSignatureS.size(), '0'); } if (UserNameSignatureR.length() == 60 && UserNameSignatureS.length() == 60) { - RegInfo.Items[2] = HelperStringFormat("60%060s%060s", UserNameSignatureS.c_str(), UserNameSignatureR.c_str()); + RegInfo.Items[2] = HelperStringFormat("60%s%s", UserNameSignatureS.c_str(), UserNameSignatureR.c_str()); break; } } @@ -259,7 +238,6 @@ public: RegInfo.Checksum ); - // maybe have fixed if (RegInfo.HexData.length() % 54 != 0) { throw std::runtime_error("InternalError: The length of register data is not correct."); } diff --git a/bin/Win32-Release/winrar-keygen.exe b/bin/Win32-Release/winrar-keygen.exe index 6355f83..bada1e4 100644 Binary files a/bin/Win32-Release/winrar-keygen.exe and b/bin/Win32-Release/winrar-keygen.exe differ diff --git a/bin/Win32-Release/winrar-keygen.pdb b/bin/Win32-Release/winrar-keygen.pdb index 337209d..7944848 100644 Binary files a/bin/Win32-Release/winrar-keygen.pdb and b/bin/Win32-Release/winrar-keygen.pdb differ diff --git a/bin/x64-Release/winrar-keygen.exe b/bin/x64-Release/winrar-keygen.exe index 8c661d1..bc61500 100644 Binary files a/bin/x64-Release/winrar-keygen.exe and b/bin/x64-Release/winrar-keygen.exe differ diff --git a/bin/x64-Release/winrar-keygen.pdb b/bin/x64-Release/winrar-keygen.pdb index 28ddba9..343c9a2 100644 Binary files a/bin/x64-Release/winrar-keygen.pdb and b/bin/x64-Release/winrar-keygen.pdb differ diff --git a/winrar-keygen.aps b/winrar-keygen.aps index d930a37..0196f31 100644 Binary files a/winrar-keygen.aps and b/winrar-keygen.aps differ diff --git a/winrar-keygen.rc b/winrar-keygen.rc index 1cff518..7d58a8d 100644 --- a/winrar-keygen.rc +++ b/winrar-keygen.rc @@ -61,8 +61,8 @@ IDI_ICON1 ICON "icon.ico" // VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,0,0,0 - PRODUCTVERSION 2,0,0,0 + FILEVERSION 2,0,1,0 + PRODUCTVERSION 2,0,1,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -79,12 +79,12 @@ BEGIN BEGIN VALUE "CompanyName", "WinRAR Keygen" VALUE "FileDescription", "WinRAR Key Generation Tool" - VALUE "FileVersion", "2.0.0.0" + VALUE "FileVersion", "2.0.1.0" VALUE "InternalName", "winrar-keygen.exe" VALUE "LegalCopyright", "Copyright (C) 2021" VALUE "OriginalFilename", "winrar-keygen.exe" VALUE "ProductName", "WinRAR Keygen" - VALUE "ProductVersion", "2.0.0.0" + VALUE "ProductVersion", "2.0.1.0" END END BLOCK "VarFileInfo"