Extend stdlib zipfile to support WinZip AES encryption.
This is an alternative to pyzipper, with the difference that zipfile-aes uses the cryptography library. The code from here is based on pyzipper.
This code can't be included in Python stdlib since there is no crypto support.
The stdlib ssl library only exposes the TLS part.
Supported operations (check the automated tests for details):
- WinZIP AES V2 and V1 read without seek.
Setup Python and uv
python3 -m venv .venv
. .venv/bin/activate
pip install uv
uv sync
uv pip install -e .[dev]
uv run patch_zipfile.pyUse dev tools
uv run pytest
uv run ruff format .
uv run ruff check