[Python-checkins] r60123 - in python/trunk: Doc/library/zipfile.rst Lib/zipfile.py
gregory.p.smith
python-checkins at python.org
Sun Jan 20 02:32:00 CET 2008
Author: gregory.p.smith
Date: Sun Jan 20 02:32:00 2008
New Revision: 60123
Modified:
python/trunk/Doc/library/zipfile.rst
python/trunk/Lib/zipfile.py
Log:
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).
Modified: python/trunk/Doc/library/zipfile.rst
==============================================================================
--- python/trunk/Doc/library/zipfile.rst (original)
+++ python/trunk/Doc/library/zipfile.rst Sun Jan 20 02:32:00 2008
@@ -21,7 +21,8 @@
documentation). It can handle ZIP files that use the ZIP64 extensions
(that is ZIP files that are more than 4 GByte in size). It supports
decryption of encrypted files in ZIP archives, but it currently cannot
-create an encrypted file.
+create an encrypted file. Decryption is extremely slow as it is
+implemented in native python rather than C.
For other archive formats, see the :mod:`bz2`, :mod:`gzip`, and
:mod:`tarfile` modules.
Modified: python/trunk/Lib/zipfile.py
==============================================================================
--- python/trunk/Lib/zipfile.py (original)
+++ python/trunk/Lib/zipfile.py Sun Jan 20 02:32:00 2008
@@ -302,7 +302,7 @@
ZIP supports a password-based form of encryption. Even though known
plaintext attacks have been found against it, it is still useful
- for low-level securicy.
+ to be able to get data out of such a file.
Usage:
zd = _ZipDecrypter(mypwd)
More information about the Python-checkins
mailing list