2022-11-19 18:41:31 +08:00

8 lines
153 B
Python

import _hmac
def new(key:any, msg=None, digestmod="hmac-md5") -> _hmac.HMAC:
hmac = _hmac.HMAC()
hmac.new(key, msg, digestmod)
return hmac