Module nixio.CryptoHash

Cryptographical Hash and HMAC object.

Functions

reinit () Re-initialize the hasher.
update (chunk) Add another chunk of data to be hashed.
final () Finalize the hash and return the digest.


Functions

reinit ()
Re-initialize the hasher.

Returns:

    CryptoHash object (self)

Usage:

    Used to clear previous data from the hasher to start hashing new data.
update (chunk)
Add another chunk of data to be hashed.

Parameters:

  • chunk Chunk of data

Returns:

    CryptoHash object (self)
final ()
Finalize the hash and return the digest.

Returns:

  1. hexdigest
  2. buffer containing binary digest

Usage:

    You can call final multiple times to get the digest.
generated by LDoc 1.5.0 Last updated 2024-09-14 22:58:31