Module RIPEMD
RIPEMD-160 cryptographic hash algorithm.
RIPEMD-160 produces the 160 bit digest of a message.
>>> from Crypto.Hash import RIPEMD
>>>
>>> h = RIPEMD.new()
>>> h.update(b'Hello')
>>> print h.hexdigest()
RIPEMD-160 stands for RACE Integrity Primitives Evaluation Message Digest
with a 160 bit digest. It was invented by Dobbertin, Bosselaers, and Preneel.
This algorithm is considered secure, although it has not been scrutinized as
extensively as SHA-1. Moreover, it provides an informal security level of just
80bits.
|
new(data=None)
Return a fresh instance of the hash object. |
|
|
|
digest_size = 20
The size of the resulting hash in bytes.
|
Return a fresh instance of the hash object.
- Parameters:
data (byte string) - The very first chunk of the message to hash.
It is equivalent to an early call to RIPEMD160Hash.update().
Optional.
- Returns:
- A RIPEMD160Hash object
|