Package Cryptodome :: Package Hash :: Module SHA1

Module SHA1

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.

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.