Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Rhine jaredrhine

View GitHub Profile
View gist:2d53704b7b83a708b47617e922dc59ba
### Keybase proof
I hereby claim:
* I am jaredrhine on github.
* I am jaredrhine (https://keybase.io/jaredrhine) on keybase.
* I have a public key ASACJXXMz-GYlOqOpB7MMVq5_h3teQvB0Ski9wEQ1FHcbgo
To claim this, I am signing this object:
@jaredrhine
jaredrhine / gist:d5333039bc27c89b15c6
Last active Aug 29, 2015
Trivial HMAC ruby pattern
View gist:d5333039bc27c89b15c6
#!/usr/bin/env ruby
# http://ruby-doc.org/stdlib-2.1.5/libdoc/openssl/rdoc/OpenSSL/HMAC.html#method-c-digest
require 'openssl'
secret_key = 'secret_key'
digest_algo = 'sha1'
input_data = 'The quick brown fox jumps over the lazy dog'