OpenSSL Symmetric Key Encryption Methods (AES, ARIA, Blowfish, Camellia, ChaCha20, Cast, DES, ...)
[OpenSSL Home][Home]
In this case we will decrypt cipher text from OpenSSL 1.x using a key derived from a password [Encrypt].
|
Outline
For example for "Hello" with 256-bit AES CBC with a passphrase of "qwerty" and a salt value of "241fa86763b85341":
% echo -n Hello | openssl enc -aes-256-cbc -pass pass:"qwerty" -e -base64 -S 241fa86763b85341 U2FsdGVkX18kH6hnY7hTQZ+x9aQ/9b8/DHe9E5n6lxA=
The value of "U2FsdGVkX18" is the word: "Salted__", and defines that the next part of the salt value. We can now decrypt the ciphertext with:
% echo U2FsdGVkX18kH6hnY7hTQZ+x9aQ/9b8/DHe9E5n6lxA= | openssl enc -aes-256-cbc -pass pass:"qwerty" -d -base64 Hello