Encrypting & Decrypting TAR file with OpenSSL


To Encrypt TAR file with OpenSSL

tar -cP <directory to archive> | openssl des3 -salt -pass pass:password  >  filename.tar      —–> Here at password please put your password

To Decrypt TAR file OpenSSL

cat filename.tar  | openssl des3 -salt -d -pass pass:password | tar -x -C path-to-extract

Please Note: Here I have used "des3" encryption. You can select different encryption techniques.

Neelesh Gurjar has written 122 articles

Leave a Reply