plusaes
plusaes copied to clipboard
Header only C++ AES cipher library
This is not an issue, it is only a proposal: would be nice if you add an encoding feature ? I have tested your code, and on this step: ```...
In some cases there is a need to use GCM with IV of size 0. I'd like to propose to remove ``` if (iv_size < 1) { return kErrorInvalidIvSize; }...
Steps to reproduce: ```C++ #include #include #include [[nodiscard]] static std::string bin2hexImpl(const std::string& str, const char* map) { std::string res{}; res.reserve(str.size() * 2); for (const auto& c : str) { res.push_back(map[(unsigned...
Small code changes to allow compilation by the Borland BCC32.exe compiler and to eliminate a warning about a signed/unsigned comparison. BCC32.exe compiler is still used in Embarcadero C++ Builder 12....
```javascript const encryptSymmetric = (key, plaintext) => { const iv = crypto.randomBytes(12).toString('base64'); const cipher = crypto.createCipheriv( "aes-256-gcm", Buffer.from(key, 'base64'), Buffer.from(iv, 'base64') ); cipher.setAAD("SuperSecretKey") let ciphertext = cipher.update(plaintext, 'binary', 'binary'); ciphertext...
Please add documentation around how you would like security issues to be reported. Thank you.
^ Title, async mode, required in single threaded apps. Decrypting large payload can freeze the thread and so the app