2022-12-18 15:40:37 +08:00

8 lines
148 B
Python

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