]> granicus.if.org Git - python/commitdiff
Mention that crc32 and adler32 are available in a different module (zlib).
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 19 Mar 2008 01:38:35 +0000 (01:38 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 19 Mar 2008 01:38:35 +0000 (01:38 +0000)
Some people look for them in hashlib.

Doc/library/hashlib.rst
Lib/hashlib.py

index 8bba7188ab28f0280ce737f3afbb3123e0c81451..bfb007f2d86e3279a24657bd79c356cff90d1b27 100644 (file)
@@ -21,6 +21,10 @@ algorithm (defined in Internet :rfc:`1321`). The terms secure hash and message
 digest are interchangeable.  Older algorithms were called message digests.  The
 modern term is secure hash.
 
+.. note::
+   If you want the adler32 or crc32 hash functions they are available in
+   the :mod:`zlib` module.
+
 .. warning::
 
    Some algorithms have known hash collision weaknesses, see the FAQ at the end.
index f7c0211a6dd61bce94440df079b466d68f755bf5..13124e2c0b2e205d04e27d23e3abd90b22669ee9 100644 (file)
@@ -18,6 +18,9 @@ md5(), sha1(), sha224(), sha256(), sha384(), and sha512()
 More algorithms may be available on your platform but the above are
 guaranteed to exist.
 
+NOTE: If you want the adler32 or crc32 hash functions they are available in
+the zlib module.
+
 Choose your hash function wisely.  Some have known collision weaknesses.
 sha384 and sha512 will be slow on 32 bit platforms.