Handy Openssl Tar Recipe

Here is something I found sitting around in an old folder:

When I need to encrypt some files fast & easy, I just put them in a tarball, and encrypt that:
$ tar cvzf – ./* | openssl enc -bf -out encrypted.tgz
(don’t forget to wipe out the original files)

and to decrypt it again:
$ openssl enc -bf -d -in encrypted.tgz | tar xvzf –

From: http://www.deadly.org/article.php3?sid=20030815193841

Comments are closed.