Golang 1.2: Unzip password protected zip file?

后端 未结 3 1942
攒了一身酷
攒了一身酷 2021-01-05 02:07

Looking at the latest release (1.2) zip package - how can I unzip a file that was password protected (using 7zip, AES-256 encoding)? I don\'t see where/how to add in that i

3条回答
  •  -上瘾入骨i
    2021-01-05 02:13

    If anyone else runs into this the extraction failing with a password error, try removing the quotes. In my case they were being escaped by go and was causing the extraction to fail.

提交回复
热议问题