Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 182010
 

Simple file encryption with OpenSSL

Answer:

You have a single file (input.txt), and you want to encrypt it with a password, it is easy with OpenSSL.

# openssl aes-128-cbc -salt -in input.txt-out input.aes

Enter the password twice.

When you want to decrypt it, use the command.

# openssl aes-128-cbc -d -salt -in input.aes -out output.txt

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>