little fix
This commit is contained in:
parent
0d28f4f519
commit
9d896d5c3a
3
main.cpp
3
main.cpp
@ -30,6 +30,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
printf("%d bytes encrypted\n", encryptedFileLength);
|
printf("%d bytes encrypted\n", encryptedFileLength);
|
||||||
std::cerr << O->PrintAesKey() << std::endl;
|
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
|
// Write the encrypted file to its own file
|
||||||
std::string encryptedFilename = O->writeFile(encryptedFile, encryptedFileLength);
|
std::string encryptedFilename = O->writeFile(encryptedFile, encryptedFileLength);
|
||||||
printf("Encrypted message written to \"%s\"\n", encryptedFilename.c_str());
|
printf("Encrypted message written to \"%s\"\n", encryptedFilename.c_str());
|
||||||
|
@ -31,7 +31,6 @@ int main(int argc, char* argv[]) {
|
|||||||
std::cerr << "mainCrypt.ex : " << O->PrintAesKey() << std::endl;
|
std::cerr << "mainCrypt.ex : " << O->PrintAesKey() << std::endl;
|
||||||
|
|
||||||
std::string keyFilename = O->exportKey();
|
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());
|
printf("Encrypt key written to \"%s\"\n", keyFilename.c_str());
|
||||||
|
|
||||||
// Write the encrypted file to its own file
|
// Write the encrypted file to its own file
|
||||||
|
Loading…
Reference in New Issue
Block a user