Działa szyfrowanie, generowanie klucza i zapisywanie klucza do pliku KEY

This commit is contained in:
yanczi 2025-10-28 00:07:00 +01:00
parent b80d983bc7
commit 8745ed2e19
7 changed files with 154 additions and 3 deletions

View file

@ -175,6 +175,7 @@ uint8_t CreateCargo::CheckFileOnTheList(const std::string& path, std::vector<cha
else
{
output = std::move(input);
//output = crypt.encrypt(input);
return RAW_FILE;
}
}
@ -188,6 +189,7 @@ uint8_t CreateCargo::CheckFileOnTheList(const std::string& path, std::vector<cha
}
output = std::move(input);
//output = crypt.encrypt(input);
return RAW_FILE;
}
@ -451,6 +453,9 @@ bool CreateCargo::WriteCargo()
cargo.close();
// Zapisywanie klucza szyfrujšcego
//crypt.saveKey(catalogPath);
std::cout << "The container was successfully created! " << cargoFile << std::endl;
return true;