womp
This commit is contained in:
parent
6afc074693
commit
6335472904
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue