You can now choose from a number of pre-installed themes

openssl error reading input file

Started by novicesam, September 20, 2021, 01:17:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hi guys, I'm really sorry to be a pain, but this is starting to wear me down...openssl enc -aes-256-cbc -d -a -pbkdf2 -in myfile -out newfile.
All I get is 'error reading input file'. If I leave out -a, then I get 'bad magic number'. It's the same if I include -base64. I'm about ready to pull my hair out...as if I don't have little enough as it is!!!
Please help guys.



Could you provide a little background please - What distro are you using and what version of openssl - and what are you trying to do?

..but "bad magic number" often means that your password is incorrect.

Try this (based on Lubuntu 20.04):

  #echo test > brian.plain
  #cat brian.plan

  #openssl enc -aes-256-cbc -a -pbkdf2 -in brian.plain -out brian.secured
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
  #cat brian.secured

#openssl enc -aes-256-cbc -d -a -pbkdf2 -in brian.secured -out brian.unsecured
enter aes-256-cbc decryption password:

#cat brian.unsecured

let us know....