Home | Trees | Indices | Help |
|
---|
|
SHA-1 cryptographic hash algorithm.
SHA-1 produces the 160 bit digest of a message.
>>> from Crypto.Hash import SHA1 >>> >>> h = SHA1.new() >>> h.update(b'Hello') >>> print h.hexdigest()
SHA stands for Secure Hash Algorithm.
This algorithm is not considered secure. Do not use it for new designs.
Classes | |
new |
Variables | |
digest_size = 20 The size of the resulting hash in bytes. |
|
block_size = 64 The internal block size of the hash algorithm in bytes. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 7 14:45:24 2020 | http://epydoc.sourceforge.net |