Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hmac
- import hashlib
- import base64
- AWS_SECRET_KEY = raw_input("AWS Secret Key >")
- MESSAGE = "SendRawEmail"
- VERSION = chr(0x02)
- hm = hmac.new(AWS_SECRET_KEY, msg=MESSAGE, digestmod=hashlib.sha256)
- print base64.b64encode(VERSION + hm.digest()).decode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement