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

Module SHA

SHA-1 cryptographic hash algorithm.

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

>>> from Crypto.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__ = 'Crypto.Hash'