import hmac message=b‘hello,world‘ key=b‘secret‘ h=hmac.new(key,message,digestmod=‘Md5‘) h.hexdigest() ‘5848a9dba4e9a6168887b0ee6cd03b69‘
10.6、hmac(一知半解)
原文:https://www.cnblogs.com/soberkkk/p/12659771.html