zipencrypt
zipencrypt is a Python module to provide weak password-based encryption for zipfiles. It is meant as a drop-in replacement for zipfile from the standard lib and provides the counterpart to the decryption implemented there.
It is implemented in pure python and does not rely on any 3rd party libraries.
Compatible to python 2.7 and 3.4+
Installation
pip install zipencrypt
The code
from zipencrypt import ZipFile
with ZipFile("file.zip", mode="w") as f:
f.writestr("file1.txt", "plaintext", pwd=b"password")
Do not use this!
The standard encryption of ZIP is known to be seriously flawed (see here). That is probably the reason why it is not implemented in zipfile in the standard lib. There are however legitimate use cases.
Metadata
Release files for zipencrypt 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zipencrypt-0.3.1.tar.gz | 21.8 kB | Without provenance | Details for zipencrypt-0.3.1.tar.gz |
Release files / zipencrypt-0.3.1.tar.gz
| Download URL | zipencrypt-0.3.1.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42480fb2e3ec54945fbba971a0b507bf7c528344a744cf9a73a83eb84825a34a
|
|
BLAKE2b-256 checksum How to use checksums |
5479e098d3337d099abe6b2a2ae064ab2a9f1d7b4c3ad19fc649fe0e5e3efa4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for zipencrypt 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.