We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encrypt / decrypt methods should use a hash function (key -> hash of AES_KEYLEN length)
encrypt
decrypt
bool CryptoHandler::encrypt(const std::string& key, const std::string& data, std::string& result) { // TODO(agudpp): std::string the_key = key.size() < AES_KEYLEN ? toolbox::StringUtils::duplicateTillNth(key, AES_KEYLEN) : key; CryptoHandler::Data crypto_data(the_key); CryptoHandler crypto_handler(crypto_data); return crypto_handler.encrypt(data, result); }
The text was updated successfully, but these errors were encountered:
agudpp
No branches or pull requests
encrypt
/decrypt
methods should use a hash function (key -> hash of AES_KEYLEN length)The text was updated successfully, but these errors were encountered: