最初版本
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user