Skip to main content

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.

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)

Source distribution for zipencrypt 0.3.1
File Size Uploaded
zipencrypt-0.3.1.tar.gz 21.8 kB Details

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page