Package Cryptodome :: Package Hash :: Module RIPEMD160

Module RIPEMD160

RIPEMD-160 cryptographic hash algorithm.

RIPEMD-160 produces the 160 bit digest of a message.

>>> from Cryptodome.Hash import RIPEMD160
>>>
>>> h = RIPEMD160.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 RIPEMD-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.
  block_size = 64
The internal block size of the hash algorithm in bytes.
  __package__ = 'Cryptodome.Hash'
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