Package Cryptodome :: Package Hash :: Module SHA

Module SHA

SHA-1 cryptographic hash algorithm.

SHA-1 produces the 160 bit digest of a message.

>>> from Cryptodome.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.

Variables
  __package__ = 'Cryptodome.Hash'