php - 如何使用 php 创建 256 位加密的 zip 文件

标签 php encryption aes

<分区>

Possible Duplicate:
Create an encrypted zip archive with PHP

如何使用 PHP 创建 256 位加密的压缩文件

如果有例子就好了

最佳答案

在 Linux 上,您可以使用 7zip 创建 AES 加密的 zip 文件:

exec("7z a -p$PASSWORD -mem=AES256 -tzip $ZIP $SOURCE");

Nfabio 提供 http://ubuntuforums.org/archive/index.php/t-1694923.html

一定要申请escapeshellarg() .

Note: While this approach will work, but it is better not to call out to the shell with an embedded password. As of php 7.2, this will no longer be necessary because php now natively supports AES zip encryption.

关于php - 如何使用 php 创建 256 位加密的 zip 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13483614/

相关文章:

PHP XPath 结束于

ssl - 了解数字签名

php - If (this = that) - 这里究竟发生了什么?

php - 无法正确设置 php + mysql + phpmyadminon iis ?怎么了?

.net - 您如何在 .Net 中安全地存储加密 key ?

javascript - Java中的AES加密无法在Javascript中解密

JAVA:如何加密和查看图像

java - 在java中的字符串中包含连接运算符(+)

php - 如何结合我约会的逻辑

java - 如何使用java中的数字签名对文档进行电子签名