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.

posted on 2010-03-10 11:04  haven24  阅读(4665)  评论(0)    收藏  举报

导航