CentOS zip 命令 - 添加密码 - 提供什么类型的加密(如果有)?
使用 CentOS5 中包含的 zip 实用程序(zip 命令):即 /usr/bin/zip -P $ZIP_PASS ...
我无法找到任何相关文档。我想知道密码的安全性如何。这是加密的吗?如果不加密,如何保护?
谢谢
With the included zip utility in CentOS5 (zip command): i.e. /usr/bin/zip -P $ZIP_PASS ...
I haven't been able to find any documentation on this. I am trying to find out how secure the password is. Is this encrypted? How is it protected if not with encryption?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我找到了我正在寻找的答案......来自 http://en.wikipedia .org/wiki/ZIP_%28file_format%29 和 http://en.wikipedia.org/wiki/Known-plaintext_attack
所以... zip 并不完全安全 - 但 zip 内的文件具有随机文件名(如果实施得当),并且立即删除未加密的文件(也是不可通过网络访问的) - 这似乎是一个可能的解决方案...
更多资源:
http://linux.101hacks.com/archive-compression/ password-protection-for-zip-files/
然而,我读得越多,7zip 的 AES 256 位加密 zip(一旦安装在服务器上)就非常非常多了更安全。它也不容易受到已知的明文攻击。
Ok I found the answer I was looking for.... From http://en.wikipedia.org/wiki/ZIP_%28file_format%29 and http://en.wikipedia.org/wiki/Known-plaintext_attack
So... the zip is not completely secure - but with random file names (when implemented well) for the file(s) inside the zip, and immediate deletion of the unencrypted file (which is also non-web-accessible) - this appears to be a POSSIBLE solution...
More resources:
http://linux.101hacks.com/archive-compression/password-protection-for-zip-files/
However, the more I read, AES 256bit encrypted zips by 7zip (once installed on the server) is much, much more secure. It is NOT susceptible to the known plaintext attack, either.
是的,它是加密的。根据手册:
这是通过在 centOS 计算机上运行“man zip”找到的。
正如手动输入所指出的,为了提高安全性,最好在命令中使用密码来压缩文件,因为其他人可以检查进程列表并看到正在压缩的密码。
我不知道它使用什么类型的加密,但我环顾四周,它似乎不太好。 stackoverflow 上也有一些类似的问题。如果加密确实很重要,请考虑使用不同的 zip 库,请使用允许 AES 的库,例如 GPG。
Yes, it is encrypted. Per the manual:
This is just found from running "man zip" on a centOS machine.
As the manual entry notes, for high security it is not good to use the password in the command to zip the file, as others could check the process list and see the password as zipping.
I don't know what kind of encryption this uses, but I looked around some and it doesn't appear to be great. There are some similiar questions on stackoverflow to this. Look into using a different zip library if encryption is truly important, use something that allows AES, such as GPG.