如何使用 Linux 终端加密 Zip 文件?

-9 encryption zip kali-linux

需要帮助!

我需要如何使用Kali Linux 终端加密 zip 文件!我努力了!但我无法用自己的知识来学习它!

Art*_*nov 5

  1. man zip
  2. /, 键入pass
  3. 你会找到:
 -e --encrypt
     Encrypt the contents of the zip archive using a password which is entered
     on the terminal in response to a prompt (this will not be echoed; if standard
     error is not a tty, zip will exit with an error). The password prompt is
     repeated to save the user from typing errors.
Run Code Online (Sandbox Code Playgroud)

压缩文件的命令是

zip -e file.zip file1 file2 file3

如果你想压缩一个目录以及其中的所有目录和文件,

zip -er file.zip directory

注意:zip使用相对较弱的加密方案。如果您正在寻找严肃且行业认可的东西,请使用7za(from p7zip)。


如果您不想使用控制台,请wine在其下安装 WinRAR/7-zip。这样你就不必处理控制台了。