Add README.md and Flags: -s -c

This commit is contained in:
Nikola Petrov
2023-08-15 22:18:49 +02:00
parent 6d9404b9b5
commit 05cb50acb4
6 changed files with 81 additions and 21 deletions

View File

@@ -13,12 +13,11 @@ public:
~Cryptography();
bool encrypt(Buffer* plain, Buffer* encrypted);
bool decrypt(Buffer* encrypted, Buffer* decrypted);
bool generate_key_and_iv_from_password(const char* password, size_t size);
private:
uint8_t key[32] = { 0 };
uint8_t iv[16] = { 0 };
EVP_CIPHER_CTX* ctx = nullptr;
bool generate_key_and_iv_from_password(const char* password, size_t size);
bool handleErrors();
};

View File

@@ -20,6 +20,8 @@ enum class Args
Delete, // delete password for label
Print_all_p, // print all passwords
Input, // input password for label
Change, // change main password
Show, // show password for label
Error // error
};