準備資料:

$ ls
my.data


加密:

$ dd if=my.data | openssl des3 -salt -k helloworld  | dd of=my.data.des3

解密:

$ dd if=my.data.des3 | openssl des3 -d -k helloworld | dd of=my.data

如此一來,就可以搭配 tar 的方式,把檔案先 tar 起來,在走 openssl 加密:

$ tar -zcvf - src | openssl des3 -salt -k helloworld | dd of=data.tar.gz.des3

解密: $ dd if=data.tar.gz.des3 | openssl des3 -d -k helloworld | tar -xzvf -