Skip to content

Instantly share code, notes, and snippets.

@hc2p
Last active February 17, 2016 10:22
Show Gist options
  • Save hc2p/4b4d8352073c7323515a to your computer and use it in GitHub Desktop.
Save hc2p/4b4d8352073c7323515a to your computer and use it in GitHub Desktop.
"AWS4-HMAC-SHA256 Credential=AKIAJ4NXC5Z5PTTEN5AQ/" strftime({"%Y%m%d"}, now) "/eu-central-1/s3/aws4_request, SignedHeaders=date;host;x-amz-content-sha256, Signature="
digest.hmac_sha256_base64(
digest.hmac_sha256_base64(
digest.hmac_sha256_base64(
digest.hmac_sha256_base64(
digest.hmac_sha256_base64("AWS4Zen9WnHAHYF5QeTdZIFyKcFW6DbrCCYXMJIKgTI5", strftime({"%Y%m%d"}, now))
, "eu-central-1")
, "s3")
, "aws4_request")
,
"AWS4-HMAC-SHA256/n"
strftime({"%Y%m%dT%H%M%S%z"}, now) "/n"
strftime({"%Y%m%d"}, now) "/eu-central-1/s3/aws4_request/n"
digest.hash_sha256(
"GET/n"
req.url.path "/n"
"/n"
"date:" strftime({"%Y%m%dT%H%M%S%z"}, now) "/n"
"host:tapetv-de-transcoding-production.s3.eu-central-1.amazonaws.com/n"
"x-amz-content-sha256:" digest.hash_sha256("") "/n"
"/n"
"date;host;x-amz-content-sha256/n"
digest.hash_sha256("")
)
)
@hc2p
Copy link
Author

hc2p commented Feb 17, 2016

something is wrong with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment