Index of /www001/src/ports/security/py-hashlib/work/hashlib-20060408a
Name Last modified Size Description
Parent Directory 14-Jan-2008 14:42 -
ChangeLog 09-Apr-2006 15:02 1k
LICENSE 08-Apr-2006 10:40 2k
LICENSE.openssl 25-Apr-2005 14:42 6k
MANIFEST.in 09-Apr-2006 15:02 1k
Modules/ 09-Apr-2006 15:10 -
PKG-INFO 09-Apr-2006 15:10 1k
build/ 14-Jan-2008 14:42 -
hashlib.py 24-Jan-2006 00:35 4k
setup.cfg 08-Apr-2006 16:16 1k
setup.py 09-Apr-2006 15:02 6k
test_hashlib.py 24-Jan-2006 00:35 6k
hashlib
20060408a
Python secure hash and message digest module
MD5, SHA1, SHA224, SHA256, SHA384 and SHA512
(backported from Python 2.5 for use on 2.3 and 2.4)
BUILDING
python setup.py build [options]
Valid options:
--openssl-prefix=path, --openssl-incdir=path, --openssl-libdir=path
If OpenSSL 0.9.7 or later is found it will be used. Version
0.9.8 is preferred as it provides many more optimized algorithms.
OpenSSL is not required.
INSTALLING
python setup.py install
USAGE
Use the following hash object constructors:
md5, sha1, sha224, sha256, sha384, and sha512
Hash objects have update, copy, digest, and hexdigest methods.
>>> x = hashlib.sha224('spam')
>>> x.hexdigest()
'e047c44d875407fdb49d53d8b2326fc3e20e27f08434fef1275a3981'
>>> y = x.copy()
>>> y.update(' and eggs')
>>> y.hexdigest()
'1c54f569f9b5c7cec6a34465de51df10b0048f3d48f7051ac6eb2e54'
DOCUMENTATION
Real documentation for this module can be found in at least
one of these locations:
http://docs.python.org/dev/lib/module-hashlib.html
http://docs.python.org/lib/module-hashlib.html
http://www.python.org/doc/2.5/lib/module-hashlib.html
Happy hashing!
Gregory P. Smith .. greg at krypto dot org
LICENSE
"PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2"
Read the LICENSE file.
The following MAY apply to binary packages of this module if they are linked
with OpenSSL. Read LICENSE.openssl file.
"This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)"