Created
July 22, 2016 14:20
-
-
Save woakas/8f4ae5be961f9f083b8a4f8ab14eb956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hmac | |
import hashlib | |
import base64 | |
key = "AWS_SECRET_KEY" | |
version = '\x02' | |
message = "SendRawEmail" | |
h = hmac.new(key, message, digestmod=hashlib.sha256) | |
p = base64.b64encode("{0}{1}".format(version, h.digest())) | |
print "Password: ", p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment