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:
- hexdigest
- buffer containing binary digest
Usage:
You can call final multiple times to get the digest.