Package Cryptodome :: Package Hash :: Module SHA3_512

Module SHA3_512

SHA-3/512 cryptographic hash algorithm.

SHA-3/512 belongs to the SHA-3 family of cryptographic hashes, as specified in FIPS 202.

The hash function produces the 512 bit digest of a message.

>>> from Cryptodome.Hash import SHA3_512
>>>
>>> h_obj = SHA3_512.new()
>>> h_obj.update(b'Some data')
>>> print h_obj.hexdigest()
Classes
  SHA3_512_Hash
Class that implements a SHA-3/512 hash
Functions
 
new(*args, **kwargs)
Return a fresh instance of the hash object.
Variables
  digest_size = 64
The size of the resulting hash in bytes.
  __package__ = 'Cryptodome.Hash'
Function Details

new(*args, **kwargs)

 
Return a fresh instance of the hash object.
Parameters:
  • data (byte string) - Optional. The very first chunk of the message to hash. It is equivalent to an early call to update().
  • update_after_digest (boolean) - Optional. By default, a hash object cannot be updated anymore after the digest is computed. When this flag is True, such check is no longer enforced.
Returns:
A SHA3_512_Hash object