This commit is contained in:
yanczi 2025-11-06 00:30:58 +01:00
parent 6afc074693
commit 6335472904

View file

@ -167,6 +167,7 @@ uint8_t CreateCargo::CheckFileOnTheList(const std::string& path, std::vector<cha
// Kompresja
if (methodFlags == 1)
{
std::cout << "COMPRESSING" << std::endl;
output = cm.compress(input);
return 1;
}
@ -174,6 +175,7 @@ uint8_t CreateCargo::CheckFileOnTheList(const std::string& path, std::vector<cha
// Szyfrowanie
if (methodFlags == 2)
{
std::cout << "ENCRYPTION" << std::endl;
output = crypt.encrypt(input);
return 2;
}
@ -181,11 +183,13 @@ uint8_t CreateCargo::CheckFileOnTheList(const std::string& path, std::vector<cha
// Kompresja i szyfrowanie
if (methodFlags == 3)
{
std::cout << "ZIP ENC" << std::endl;
output = crypt.encrypt(cm.compress(input));
return 1;
return 3;
}
// Zwraca surowe dane
std::cout << "RAW" << std::endl;
output = std::move(input);
return 0;
}