Class: HMAC::MD5

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

Class Method Summary collapse

Class Method Details

.digest(key, text) ⇒ Object



3
4
5
# File 'lib/hmac.rb', line 3

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

.hexdigest(key, text) ⇒ Object



7
8
9
# File 'lib/hmac.rb', line 7

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