2002-05-24 14:16:22 -07:00
|
|
|
"""Hashing algorithms
|
1998-12-13 19:19:48 -07:00
|
|
|
|
2002-05-24 14:16:22 -07:00
|
|
|
Hash functions take arbitrary strings as input, and produce an output
|
|
|
|
|
of fixed size that is dependent on the input; it should never be
|
|
|
|
|
possible to derive the input data given only the hash function's
|
|
|
|
|
output. Hash functions can be used simply as a checksum, or, in
|
|
|
|
|
association with a public-key algorithm, can be used to implement
|
|
|
|
|
digital signatures.
|
1998-12-13 19:19:48 -07:00
|
|
|
|
2002-05-24 14:16:22 -07:00
|
|
|
The hashing modules here all support the interface described in PEP
|
|
|
|
|
247, "API for Cryptographic Hash Functions".
|
|
|
|
|
|
|
|
|
|
Submodules:
|
|
|
|
|
Crypto.Hash.HMAC RFC 2104: Keyed-Hashing for Message Authentication
|
|
|
|
|
Crypto.Hash.MD2
|
|
|
|
|
Crypto.Hash.MD4
|
|
|
|
|
Crypto.Hash.MD5
|
2008-08-13 21:15:23 -04:00
|
|
|
Crypto.Hash.RIPEMD160
|
2002-05-24 14:16:22 -07:00
|
|
|
Crypto.Hash.SHA
|
|
|
|
|
"""
|
|
|
|
|
|
2008-08-13 21:15:23 -04:00
|
|
|
__all__ = ['HMAC', 'MD2', 'MD4', 'MD5', 'RIPEMD', 'RIPEMD160', 'SHA', 'SHA256']
|
2008-08-06 21:27:50 -04:00
|
|
|
__revision__ = "$Id$"
|
2002-07-11 14:31:19 -07:00
|
|
|
|