Skip to content

Commit da40723

Browse files
committed
Document that zipfile decryption is insanely slow and fix a typo and
blatant lie in a docstring (it is not useful for security regardless of how you spell it).
1 parent f25680a commit da40723

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/zipfile.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ added to individual archive members---for which see the :ref:`zipinfo-objects`
2121
documentation). It can handle ZIP files that use the ZIP64 extensions
2222
(that is ZIP files that are more than 4 GByte in size). It supports
2323
decryption of encrypted files in ZIP archives, but it currently cannot
24-
create an encrypted file.
24+
create an encrypted file. Decryption is extremely slow as it is
25+
implemented in native python rather than C.
2526

2627
For other archive formats, see the :mod:`bz2`, :mod:`gzip`, and
2728
:mod:`tarfile` modules.

Lib/zipfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class _ZipDecrypter:
302302
303303
ZIP supports a password-based form of encryption. Even though known
304304
plaintext attacks have been found against it, it is still useful
305-
for low-level securicy.
305+
to be able to get data out of such a file.
306306
307307
Usage:
308308
zd = _ZipDecrypter(mypwd)

0 commit comments

Comments
 (0)