hmac.new(key, msg=None, digestmod=None) Return a new hmac object. key is a bytes or bytearray object giving the secret
hashlib.algorithms_guaranteed A set containing the names of the hash algorithms guaranteed to be supported by this module on
hashlib.pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None) The function provides PKCS#5 password-based key derivation
hash.block_size The internal block size of the hash algorithm in bytes.
hash.copy() Return a copy (“clone”) of the hash object. This can be used to efficiently compute the digests of data sharing
HMAC.hexdigest() Like digest() except the digest is returned as a string twice the length containing only hexadecimal
hash.update(arg) Update the hash object with the object arg, which must be interpretable as a buffer of bytes. Repeated
HMAC.name The canonical name of this HMAC, always lowercase, e.g. hmac-md5.
hash.digest() Return the digest of the data passed to the update() method so far. This is a bytes object of size
HMAC.update(msg) Update the hmac object with msg. Repeated calls are equivalent to a single call with the concatenation
Page 1 of 2