Module: Utility::HMAC

Included in:
Utility
Defined in:
lib/utility/hmac.rb

Instance Method Summary collapse

Instance Method Details

#hmac(sha, key, data) ⇒ Object



5
6
7
# File 'lib/utility/hmac.rb', line 5

def hmac(sha, key, data)
  OpenSSL::HMAC.hexdigest sha, key, data
end