OpenSSL::HMAC
class OpenSSL::HMAC
Public Class Methods
digest(digest, key, data) → aString Show source
Returns the authentication code as a binary string. The digest
parameter must be an instance of OpenSSL::Digest.
Example
key = 'key' data = 'The quick brown fox jumps over the lazy dog' digest = OpenSSL::Digest.new('sha1') hma