We have moved to www.dataGenX.net, Keep Learning with us.

Wednesday, December 12, 2012

Encrypting Data using "tar" and "openssl" in Nix

The following shows an example of writing the contents of "tapetest" to tape:

        $ tar zcvf – tapetest | openssl des3 -salt  -k secretpassword | dd of=/dev/st0

     Reading the data back:

        $ dd if=/dev/st0 | openssl des3 -d -k "secretpassword" |tar xzf –


$ tar –cvf * file.tar | openssl des3 -salt  -k secretpassword

till then.....
njoy the simplicity.......