Save new private key when it generated
This commit is contained in:
parent
c7e5eab364
commit
fdc727ca72
@ -115,6 +115,8 @@ int _tmain(int argc, TCHAR* argv[]) {
|
||||
do {
|
||||
cipher->GenerateKey(2048);
|
||||
} while (patcher::Solution0::CheckKey(cipher) && patcher::Solution1::CheckKey(cipher));
|
||||
cipher->ExportKeyToFile<RSACipher::KeyType::PrivateKey, RSACipher::KeyFormat::PEM>("RegPrivateKey.pem");
|
||||
_tprintf_s(TEXT("New RSA private key has been saved to RegPrivateKey.pem.\n"));
|
||||
}
|
||||
|
||||
// ------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user