美文网首页
zip 加密

zip 加密

作者: James999 | 来源:发表于2023-05-08 15:00 被阅读0次

https://www.2daygeek.com/zip-7zip-encrypt-decrypt-password-protect-files-folders-linux/
sudo apt-get install zip unzip

# zip --encrypt test.zip test.txt test1.txt
Enter password: ******
Verify password: *****
  adding: test.txt (stored 0%)
  adding: test1.txt (stored 0%)

Details :

zip : Command
–encrypt : To create encryption
test.zip : Zip file name
test.txt & test1.txt : These are files to be encrypted

To unzip encrypted zip file, just run the following command and input the password once.

# unzip test.zip
Archive:  test.zip
[test.zip] test.txt password: ******
replace test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test.txt
replace test1.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test1.txt

For floder encryption use -r option with zip command. In this example, we are going to create a encrypted zip file called test1.zip with test.txt, test1.txt file & test-dir folder.

# zip -r --encrypt test1.zip test.txt test1.txt test-dir/
Enter password: ******
Verify password: ******
  adding: test.txt (stored 0%)
  adding: test1.txt (stored 0%)
  adding: test-dir/ (stored 0%)
  adding: test-dir/test1.txt (stored 0%)
  adding: test-dir/test.txt (stored 0%)

To unzip encrypted zip folder, just run the following command and input the password once.

# unzip test1.zip
Archive:  test1.zip
[test1.zip] test.txt password: ******
replace test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test.txt
replace test1.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test1.txt
replace test-dir/test1.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test-dir/test1.txt
replace test-dir/test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test-dir/test.txt

相关文章

  • 破解zip加密文件

    一、zip属性隐藏 查看zip属性注释 二、zip伪加密 Zip伪加密是在文件头的加密标志位做修改,进而再打开文件...

  • 命令行的压缩解压缩以及加密解密

    利用zip 命令对文件或文件夹进行加密和解密。 加密方法: 对文件进行加密 zip -e aa.zip aa.lo...

  • 压缩文件

    加密压缩zip -re xxx.zip filezip -re xxx.zip dir

  • linux压缩和解压缩

    tar 加密格式 .tar.gz tar 普通格式 .tar gz普通压缩 gz加密 zip命令 .zip ...

  • 2022-07-11

    Mac加密压缩zip -e archivename.zip filetoprotect.txt

  • ZIP加密

    伪加密 涨姿势了:zip下载下来是加密的,但是其实可能根本不是加密过的。 50 4B 03 04之后的第六位如果是...

  • 生成加密zip文件-常用于对导出的数据库文件加密

    生成加密zip文件命令: 进行解密压缩 例如: 生成加密zip文件命令,常用于对导出的数据库文件加密(与mysql...

  • MAC终端命令行部分

    1、文件压缩:zip 命令 //加密压缩 zip -e -r 文件名.zip 目标目录 -------回车-输入密...

  • zip文件解析

    暂不考虑zip加密,zip64 介绍 常见zip格式文件有.JAR, .WAR, .DOCX, .XLSX, .P...

  • zip

    文件头尾,伪加密 文件头50 4B 03 04zip文件头 文件尾也有50 4B的标示zip文件尾 伪加密加密位 ...

网友评论

      本文标题:zip 加密

      本文链接:https://www.haomeiwen.com/subject/rkdlsdtx.html