Package Crypto :: Package Hash :: Module RIPEMD
[frames] | no frames]

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.

Classes
  RIPEMD160Hash
Class that implements a RIPMD-160 hash
Functions
 
new(data=None)
Return a fresh instance of the hash object.
Variables
  digest_size = 20
The size of the resulting hash in bytes.
Function Details

new(data=None)

 
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