PyDocs

Nav

Cryptographic Services

HMAC

hmac

class (source)
  • HMAC(key, msg=None, digestmod='')
RFC 2104 HMAC class.  Also complies with RFC 4231.

This supports the API for Cryptographic Hash Functions (PEP 247).
Members of HMAC

b

block_size
The internal block size of the hash algorithm in bytes.

c

copy
Return a separate copy of this hashing object.

d

digest
Return the hash value of this hashing object.
digest_size
The size of the resulting HMAC digest in bytes.

h

hexdigest
Like digest(), but returns a string of hexadecimal digits instead.

n

name
The canonical name of this HMAC, always lowercase, e.g.

u

update
Feed data from msg into this hashing object.
0 Examples
No examples for hmac/HMAC.
See Also
No see-alsos for hmac/HMAC
0 Notes
No notes for HMAC