tar 给压缩文件加个密码的方法
引用自:http://kerneltrap.org/node/2737
ENCRYPTION:
tar -zcvf - stuff|openssl des3 -salt -k secretpassword | dd of=stuff.des3
This will create stuff.des3...don't forget the password you put in place of secretpassword.
dd if=stuff.des3 |openssl des3 -d -k secretpassword|tar zxf -
Ok above there is a "-" at the end... this will extract everything.
浙公网安备 33010602011771号