hmac.py 148 B

1234567
  1. import _hmac
  2. def new(key:any, msg=None, digestmod="md5") -> _hmac.HMAC:
  3. hmac = _hmac.HMAC()
  4. hmac.new(key, msg, digestmod)
  5. return hmac