10.6、hmac(一知半解)
import hmac message=b'hello,world' key=b'secret' h=hmac.new(key,message,digestmod='Md5') h.hexdigest() '5848a9dba4e9a6168887b0ee6cd03b69'
import hmac message=b'hello,world' key=b'secret' h=hmac.new(key,message,digestmod='Md5') h.hexdigest() '5848a9dba4e9a6168887b0ee6cd03b69'