Skip to content

Instantly share code, notes, and snippets.

@aaronlifton3
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save aaronlifton3/ec479025c93a3ff5597b to your computer and use it in GitHub Desktop.

Select an option

Save aaronlifton3/ec479025c93a3ff5597b to your computer and use it in GitHub Desktop.
require 'openssl'
key = "SYMETRIC KEY"
data = "DATA TO SIGN"
p OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new('sha1'), key, data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment