<div dir="ltr"><div>The command from the original report fails for me with openssl 3.0.7 with >>bad decrypt<< even with the newline.</div><div><br></div><div>I came up with a slightly different set of commands that reproduce this behaviour, and which also includes -pbkdf2 that now seems to be required to avoid a warning.<br></div><div><br></div><div>porridge@fujitsu:~$ echo peekaboo | openssl enc -aes-256-cbc -pbkdf2 -pass pass:bar  -base64</div>U2FsdGVkX190F0Gf0mikyIDlIh9oDADRLtCA0wSMEHg=<br>porridge@fujitsu:~$ echo -n U2FsdGVkX190F0Gf0mikyIDlIh9oDADRLtCA0wSMEHg= | openssl enc -aes-256-cbc -pbkdf2 -pass pass:bar -d -base64<br><div>error reading input file</div><div><br></div><div>I also learned about the -A flag which seems to make openssl work in this case:<br></div><br>porridge@fujitsu:~$ echo -n U2FsdGVkX190F0Gf0mikyIDlIh9oDADRLtCA0wSMEHg= | openssl enc -aes-256-cbc -A -pbkdf2 -pass pass:bar -d -base64<br><div>peekaboo</div><div><br></div><div>However even in the manpage it is mentioned to be buggy:</div><div><br></div><div>       The -A option when used with large files doesn't work properly.</div><div><br></div><div>I also found an upstream issue about base64 handling which seems to be closely related to this bug report: <a href="https://github.com/openssl/openssl/issues/18780">https://github.com/openssl/openssl/issues/18780</a></div><div>Jean-Michel, if you consider this a good enough workaround for your use case, please consider closing this bug.</div><div><br></div><div>Marcin<br> </div></div>