summaryrefslogtreecommitdiffstats
path: root/lol.py
blob: 38239c13679d3b78e241f9443913da388b3622b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
from datetime import datetime
from binascii import hexlify
import hmac
import hashlib
import base64
secret = "ZhQCqoZp"
message= datetime.utcnow().strftime("%Y%m%d%H")

dig = hmac.new(secret, msg=message, digestmod=hashlib.sha256).digest()
print(hexlify(dig).upper())