7-Zip命令在Windows上创建并提取受密码保护的ZIP文件? [英] 7-Zip command to create and extract a password-protected ZIP file on Windows?
问题描述
zip在Mac / Linux上压缩/解压密码保护的zip文件-P password -r encrypted.zip folderIWantToZip
解压缩:
unzip -P password encrypted.zip
在命令行上,Windows上的等效命令是什么(假设已安装7zip)?
我一直在做研究,发现密码加密是不可能的使用Java zip4j库。 Windows也没有像Mac / Linux一样的zip命令提示符
从 http://www.dotnetperls.com :
7z a secure.7z * -pSECRET
其中:
7z:7-Zip可执行文件的名称和路径
a:添加到存档
secure.7z:目标存档名称
*:添加所有文件从当前目录到目标存档
-pSECRET:指定密码SECRET
打开:
7z x secure.7z
然后提供SECRET密码
注意:
如果密码包含空格或特殊字符,请用一对引号括起来
7z一个安全的.7z * -ppa $$ word @'|
On Mac/Linux to zip/unzip password protected zip files, I use: Zip:
zip -P password -r encrypted.zip folderIWantToZip
Unzip:
unzip -P password encrypted.zip
What are the equivalent command on Windows on the command line (assuming that 7zip has been installed)?
I have been doing research and found that it is not possible to password encrypt using the Java zip4j library. Also Windows does not have a zip command prompt like Mac/Linux
From http://www.dotnetperls.com:
7z a secure.7z * -pSECRET
Where:
7z : name and path of 7-Zip executable
a : add to archive
secure.7z : name of destination archive
* : add all files from current directory to destination archive
-pSECRET : specify the password "SECRET"
To open :
7z x secure.7z
Then provide the SECRET password
Note: If the password contains spaces or special characters, then enclose it in a pair of quotes
7z a secure.7z * -p"pa$$word @'|"
这篇关于7-Zip命令在Windows上创建并提取受密码保护的ZIP文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!