| |
| This module implements the HMAC algorithm as described by :rfc:`2104`. |
| |
| |
| .. function:: new(key[, msg[, digestmod]]) |
| |
| Return a new hmac object. If *msg* is present, the method call ``update(msg)`` |
| is made. *digestmod* is the digest constructor or module for the HMAC object to |
t | use. It defaults to the ``hashlib.md5`` constructor. |
t | use. It defaults to the :func:`hashlib.md5` constructor. |
| |
| .. note:: |
| |
| The md5 hash has known weaknesses but remains the default for backwards |
| compatibility. Choose a better one for your application. |
| |
| An HMAC object has the following methods: |
| |