I have an AES-encrypted file that is encoded in base64 single line (no breaks) and needs to be decrypted. Here he is.
But when I use:
openssl enc -d -a -aes-256-cbc -in encrypted -out decrypted
OpenSSL throws "input file for reading errors"
But base64 util decodes it like a charm:
base64 -d encrypted | openssl enc -d -aes-256-cbc > decrypted
Trying to find the cause and convert to a single-line base64 file:
base64 -w 0 aesfile | openssl enc -d -a -aes-256-cbc > decrypted
Conclusion: OpenSSL cannot decode base64 non-multi-line inputs
multiline base64 openssl encryption line-breaks
br.
source share