Class: HMAC::RMD160

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

Class Method Summary collapse

Class Method Details

.digest(key, text) ⇒ Object



53
54
55
# File 'lib/hmac.rb', line 53

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

.hexdigest(key, text) ⇒ Object



57
58
59
# File 'lib/hmac.rb', line 57

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