Slide 36
Slide 36 text
۩ମతͳ4&$3&5@)"4)ͷܭࢉํ๏ʢQZUIPOʣ
ʲҾ༻ʳ"NB[PO$PHOJUPͷʮΫϥΠΞϯτͷγʔΫϨοτͷϋογϡΛݕূͰ͖·ͤΜʯͱ͍͏ΤϥʔΛղܾ͢Δ
IUUQTBXTBNB[PODPNKQQSFNJVNTVQQPSULOPXMFEHFDFOUFSDPHOJUPVOBCMFUPWFSJGZTFDSFUIBTI
import sys
import hmac, hashlib, base64
username = sys.argv[1]
app_client_id = sys.argv[2]
key = sys.argv[3]
message = bytes(sys.argv[1]+sys.argv[2],'utf-8')
key = bytes(sys.argv[3],'utf-8')
secret_hash = base64.b64encode(hmac.new(key, message,
digestmod=hashlib.sha256).digest()).decode()
print("SECRET HASH:",secret_hash)
python3 secret_hash.py <<ϩάΠϯϢʔβʔ໊>> <> <>
secret_hash.py