Latest Additions

April 25, 2012
UDT - UDP Data Transfer
UDP Data Transfer UDP based Data Transfer Protocol UDT is a high performance data transfer...
April 09, 2011
FTP Queue Server
Design Overview The goal was to develop a revision to the standard FTP server which allows people...

Site Search

Suggested Reading

none

Pages linked to here

none

How Do I Encrypt A File Using OpenSSL

For symmetric encryption


  • To encrypt:

 openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt


  • To decrypt:

 openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt


For Asymmetric encryption

you must first generate your private key and extract the public key.
 openssl genrsa -des3 -out private.key 4096
 openssl -in private.key -pubout -out public.key


  • To encrypt:

 openssl rsautl -encrypt -pubin -inkey public.key \
                         -in plaintext.txt -out encrypted.txt


  • To decrypt:

 openssl rsautl -decrypt -inkey private.key \
                         -in encrypted.txt -out plaintext.txt

This topic was last modified on 04-07-2010 and has had 121 hits. These are popular related words: