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.

Mar 082012
 

Perform AES256 encryption on a string using command

Answer:

To encrypt a string using AES256, you can use the openssl tool.

# echo -n 'apple' | openssl enc -aes256 -k password -nosalt -iv 0 -a -p

key=1F3870BE274F6C49B3E31A0C6728957F0628DEF3179C824405825F85F5527096
iv =00000000000000000000000000000000
PMcE/8RE+RLRlQWT5tlLWA==

 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>