import hmac

message = b'hello world'
key = b'slat'
h = hmac.new(key,message,digestmod='MD5')
# 如果消息过长，可以多次调用 h.update(msg)
print(h.hexdigest())

85b3d4da3e86f8778f5069df5e4ef95f177ddd6f
<mask token>

<mask token>
print(h.hexdigest())

<mask token>
message = b'hello world'
key = b'slat'
h = hmac.new(key, message, digestmod='MD5')
print(h.hexdigest())

import hmac
message = b'hello world'
key = b'slat'
h = hmac.new(key, message, digestmod='MD5')
print(h.hexdigest())

import hmac

message = b'hello world'
key = b'slat'
h = hmac.new(key,message,digestmod='MD5')
# 如果消息过长，可以多次调用 h.update(msg)
print(h.hexdigest())
