17 lines
336 B
Python
17 lines
336 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
import hashlib
|
|
import hmac
|
|
|
|
SECRET = "YYHDjxD7Yk8DM7dzLQu1MAeP"
|
|
IDENTIFIER = "qiuyue001"
|
|
|
|
identifier_hash = hmac.new(
|
|
SECRET.encode("utf-8"),
|
|
IDENTIFIER.encode("utf-8"),
|
|
hashlib.sha256,
|
|
).hexdigest()
|
|
|
|
print("identifier:", IDENTIFIER)
|
|
print("identifier_hash:", identifier_hash)
|