Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created October 13, 2016 14:33
Show Gist options
  • Save johnhamelink/a4b61038b829407a6ea5b322fb99afa6 to your computer and use it in GitHub Desktop.
Save johnhamelink/a4b61038b829407a6ea5b322fb99afa6 to your computer and use it in GitHub Desktop.
Base64.strict_encode64(
OpenSSL::HMAC.digest(
OpenSSL::Digest.new('sha1'),
@secret_access_key, policy)
).strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment