Slide 25
Slide 25 text
۩ମతͳ4&$3&5@)"4)ͷܭࢉํ๏ QZUIPO
25
import hmac, hashlib, base64
def create_secret_hash(user_name, app_client_id, secret_key):
message = bytes(user_name + app_client_id, ‘utf-8’)
key = bytes(secret_key, ‘utf-8’)
digest = hmac.new(key, message, digestmod=hashlib.sha256).digest()
secret_hash = base64.b64encode(digest).decode()
return secret_hash
user_name = <<ϩάΠϯϢʔβʔ໊>>
app_client_id = <>
secret_key = <>
print('SECRET HASH:’,create_secret_hash(user_name, app_client_id, secret_key))
ʲࢀߟʳϢʔβʔΞΧϯτͷαΠϯΞοϓͱ֬ೝγʔΫϨοτϋογϡͷܭࢉ"NB[PO$PHOJUP
IUUQTEPDTBXTBNB[PODPNKB@KQDPHOJUPMBUFTUEFWFMPQFSHVJEFTJHOJOHVQVTFSTJOZPVSBQQIUNM