Module: DuoApi::Digesting

Included in:
HeaderSignature, Signature
Defined in:
lib/duo-api/digesting.rb

Constant Summary collapse

DIGEST =
OpenSSL::Digest.new("sha1")

Instance Method Summary collapse

Instance Method Details

#digest(key, text) ⇒ Object



6
7
8
# File 'lib/duo-api/digesting.rb', line 6

def digest(key, text)
  OpenSSL::HMAC.hexdigest(DIGEST, key, text)
end