Advertisement
Guest User

Untitled

a guest
May 24th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import hmac
  2. import hashlib
  3. import base64
  4.  
  5. AWS_SECRET_KEY = raw_input("AWS Secret Key >")
  6.  
  7. MESSAGE = "SendRawEmail"
  8.  
  9. VERSION = chr(0x02)
  10.  
  11. hm = hmac.new(AWS_SECRET_KEY, msg=MESSAGE, digestmod=hashlib.sha256)
  12. print base64.b64encode(VERSION + hm.digest()).decode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement