免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2919 | 回复: 12
打印 上一主题 下一主题

sun下怎么给压缩包加上密码啊? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-20 20:22 |只看该作者 |倒序浏览
man了一下gzip和zip好象都没有加密的参数?请教各位,这两个压缩命令可以实现吗?如果实现不了那有别的办法吗?

论坛徽章:
0
2 [报告]
发表于 2006-04-21 08:33 |只看该作者
没有人知道吗?

论坛徽章:
0
3 [报告]
发表于 2006-04-21 13:58 |只看该作者
问这问题够有意思的!
帮你顶一下吧

论坛徽章:
0
4 [报告]
发表于 2006-04-21 14:28 |只看该作者
有意思,我也顶一下

论坛徽章:
0
5 [报告]
发表于 2006-04-24 09:25 |只看该作者
我也想知道!!

论坛徽章:
0
6 [报告]
发表于 2006-04-25 16:42 |只看该作者
看来四木有人知道了

论坛徽章:
0
7 [报告]
发表于 2006-04-25 17:54 |只看该作者
NAME
     crypt - encode or decode a file

SYNOPSIS
     crypt [ password ]

DESCRIPTION
     crypt encrypts and decrypts the contents of  a  file.  crypt
     reads  from  the  standard  input and writes on the standard
     output.  The password is a key  that  selects  a  particular
     transformation.   If  no  password is given, crypt demands a
     key from the terminal and turns off printing while  the  key
     is being typed in. crypt encrypts and decrypts with the same
     key:

     example% crypt key<clear.file> encrypted.file
     example% crypt key<encrypted.file | pr

论坛徽章:
0
8 [报告]
发表于 2006-04-25 19:54 |只看该作者
原帖由 nus 于 2006-4-25 17:54 发表
[size=-2]crypt encrypts and decrypts the contents of  a  file.  


crypt是用来加密文件内容的.我想知道的是怎么给压缩包上加上密码.就象windows下给rar包加上密码一样.

还是感谢楼上回复.

论坛徽章:
0
9 [报告]
发表于 2006-04-26 08:59 |只看该作者
zip就可以啊,用zip -P pass  /pathtofile/file.zip /file1

论坛徽章:
0
10 [报告]
发表于 2006-04-26 09:49 |只看该作者
原帖由 sonorous 于 2006-4-26 08:59 发表
zip就可以啊,用zip -P pass  /pathtofile/file.zip /file1


  1. [color=Black]zip -P[/color]
  2. [color=Red]zip error: Invalid command arguments (encryption not supported)[/color]
复制代码


zip有个-P选项我也知道的.但是在sun下(我的是solaris 8 )会提示不支持.
是与系统版本有关系,还是与安装有关系,还是根本就不支持?
还请用过的指点一二!!

先谢谢楼上

[ 本帖最后由 fwizard 于 2006-4-26 09:51 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP