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
In my application, I would like to encode data with openssl from the command line, and decode it with AES in C++.
openssl
AES
However, I am struggling to get the right options for openssl.
I have tried:
echo -n "1234567890123456" | openssl enc -e -aes-128-ecb -nopad -nosalt -k FooBar > file
And decrypt with:
AES encryption(AESKeyLength::AES_128); unsigned char key[] = {0x46, 0x6F, 0x6F, 0x42, 0x61, 0x72}; auto out = encryption.DecryptECB(data, size, key);
However the results are garbage.
My code works fine if I encrypt with EncryptECB().
EncryptECB()
Anyone know the correct settings for openssl to make it work with AES?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In my application, I would like to encode data with
openssl
from the command line, and decode it withAES
in C++.However, I am struggling to get the right options for
openssl
.I have tried:
And decrypt with:
However the results are garbage.
My code works fine if I encrypt with
EncryptECB()
.Anyone know the correct settings for
openssl
to make it work withAES
?The text was updated successfully, but these errors were encountered: