]> granicus.if.org Git - python/commitdiff
Document that zipfile decryption is insanely slow and fix a typo and
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 20 Jan 2008 01:32:00 +0000 (01:32 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 20 Jan 2008 01:32:00 +0000 (01:32 +0000)
blatant lie in a docstring (it is not useful for security regardless of
how you spell it).

Doc/library/zipfile.rst
Lib/zipfile.py

index f1cfc1ba3bc5aa20625803ae1c2a084043c65485..e3c852b15b35e8c92c26f7dd491f04976b1d074b 100644 (file)
@@ -21,7 +21,8 @@ added to individual archive members---for which see the :ref:`zipinfo-objects`
 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.
index 6feabbf220ba48b444f52abc275e907b2dab1e2a..9f5669e71b71e166edaa17cac3de6c53671bb053 100644 (file)
@@ -302,7 +302,7 @@ class _ZipDecrypter:
 
     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)