Browse Source

little fix

master
Antoine 1 year ago
parent
commit
9d896d5c3a
2 changed files with 3 additions and 1 deletions
  1. +3
    -0
      main.cpp
  2. +0
    -1
      mainCrypt.cpp

+ 3
- 0
main.cpp View File

@@ -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());


+ 0
- 1
mainCrypt.cpp View File

@@ -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


Loading…
Cancel
Save