Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to decrypt a file, I run:

openssl enc -d -aes128 -in encrypted.txt -out decrypted.txt

It asked me this:

enter aes-128-cbc decryption password:

Whatever I type, I get this: bad magic number I did not find an answer on this forum when I checked similar question. Please help me.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.