Class: HMAC::SHA384

Inherits:
Object
  • Object
show all
Defined in:
lib/hmac.rb

Class Method Summary collapse

Class Method Details

.digest(key, text) ⇒ Object



33
34
35
# File 'lib/hmac.rb', line 33

def self.digest(key,text)
  OpenSSL::HMAC.digest('sha384', key, text)
end

.hexdigest(key, text) ⇒ Object



37
38
39
# File 'lib/hmac.rb', line 37

def self.hexdigest(key,text)
  OpenSSL::HMAC.hexdigest('sha384', key, text)
end