<分区>
Possible Duplicate:
Create an encrypted zip archive with PHP
如何使用 PHP 创建 256 位加密的压缩文件
如果有例子就好了
标签 php encryption aes
最佳答案
在 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/