diff --git a/main.cpp b/main.cpp index 8c9a843..5c2b92b 100644 --- a/main.cpp +++ b/main.cpp @@ -30,6 +30,9 @@ int main(int argc, char* argv[]) { printf("%d bytes encrypted\n", encryptedFileLength); std::cerr << O->PrintAesKey() << std::endl; + std::string keyFilename = O->exportKey(); + printf("Key written to \"%s\"\n", keyFilename.c_str()); + // Write the encrypted file to its own file std::string encryptedFilename = O->writeFile(encryptedFile, encryptedFileLength); printf("Encrypted message written to \"%s\"\n", encryptedFilename.c_str()); diff --git a/mainCrypt.cpp b/mainCrypt.cpp index 08e9965..a5050df 100644 --- a/mainCrypt.cpp +++ b/mainCrypt.cpp @@ -31,7 +31,6 @@ int main(int argc, char* argv[]) { std::cerr << "mainCrypt.ex : " << O->PrintAesKey() << std::endl; std::string keyFilename = O->exportKey(); - // std::string keyFilename = O->writeFile(O->getAesKey(), (O->PrintAesKey()).length(), "aesKey.key"); printf("Encrypt key written to \"%s\"\n", keyFilename.c_str()); // Write the encrypted file to its own file