enaxm
V2EX  ›  macOS

mac 怎么解压中文加密的 zip 包?

  •  
  •   enaxm · Apr 26, 2024 via Android · 3855 views
    This topic created in 933 days ago, the information mentioned may be changed or developed.

    试了几乎所有软件 keka 7zip bandizip 开 pd 虚拟机 windows winrar

    全部提示密码错误,或者无效字符 密码正确,换到 windows 电脑上就能解压了

    所以,mac 平台上遇到这种中文加密的 zip 包该怎么正常解压?

    11 replies  •  2024-04-28 18:07:01 +08:00
    ShadowPower
    ShadowPower
    Apr 26, 2024
    1
    from zipfile import ZipFile

    with ZipFile("文件名.zip", "r", metadata_encoding="gb2312") as z:
    z.extractall(pwd="中文密码".encode("gb2312"))

    这样解压
    enaxm
    enaxm
    OP
    Apr 26, 2024
    2
    @ShadowPower #1 提示没有 metadata_encoding 参数,改了一下:
    from zipfile import ZipFile

    password = "密码".encode("gb2312")

    with ZipFile("文件.zip", "r") as z:
    z.extractall(pwd=password)


    然而新的问题出现了,这个 zip 压缩包是分 p 的,有.zip(总),.z01, .z02 这种,报错提示 zipfile 解压不了
    ShadowPower
    ShadowPower
    Apr 26, 2024
    3
    @enaxm 不知那些压缩工具能不能在不知道解压密码的情况下合并分卷……
    SakuraYuki
    SakuraYuki
    Apr 26, 2024
    4
    mapzip 可以,但是比较蛋疼的是输入框默认只能打英文,需要自己复制粘贴好中文
    SakuraYuki
    SakuraYuki
    Apr 26, 2024
    5
    @SakuraYuki mapzip >> maczip
    yanhonghong
    yanhonghong
    Apr 26, 2024
    6
    这个压缩包用的 2345 好压吧
    yanhonghong
    yanhonghong
    Apr 26, 2024
    7
    还有一部分的 zip 包只能用 maczip 才能解压
    b4115Z4mRAz9P8EA
    b4115Z4mRAz9P8EA
    Apr 26, 2024❤️1
    8
    在 Apple store 下载 The Unarchiver 并安装。
    这是最优解,无界面,系统无缝调用。
    KeoC
    KeoC
    Apr 26, 2024
    9
    Bandizip 工具栏里把编码改成简体中文,密码的编码也会跟着变了
    FurN1
    FurN1
    Apr 27, 2024
    10
    The Unarchiver 解压最稳,Keka 则是压缩选项多最好用
    enaxm
    enaxm
    OP
    Apr 28, 2024
    11
    @KeoC #9 这方法可行;应该是我系统是英文的,所以 The Unarchiver 、Keka 解压都失败了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 21:39 · PVG 05:39 · LAX 13:39 · JFK 16:39
    ♥ Do have faith in what you're doing.