Skip to content

Instantly share code, notes, and snippets.

View colmcoughlan's full-sized avatar

Colm Coughlan colmcoughlan

View GitHub Profile
@colmcoughlan
colmcoughlan / extract_encrypted_zip_file.md
Last active May 2, 2022 10:58
Extract an encrypted zip file with a password using Python 3

Extract files from an encrpyted zip file with python3

Take care, python3's zipfile only supports encrypted zip files that use CRC-32 based encryption This seems to be the default for the "zip" program on linux, but this doesn't work for AES encryption, or for many Windows based zip solutions See https://github.com/python/cpython/blob/3.6/Lib/zipfile.py for more details

from zipfile import ZipFile