Class: HMAC::SHA512
- Inherits:
-
Object
- Object
- HMAC::SHA512
- Defined in:
- lib/hmac.rb
Class Method Summary collapse
Class Method Details
.digest(key, text) ⇒ Object
43 44 45 |
# File 'lib/hmac.rb', line 43 def self.digest(key,text) OpenSSL::HMAC.digest('sha512', key, text) end |
.hexdigest(key, text) ⇒ Object
47 48 49 |
# File 'lib/hmac.rb', line 47 def self.hexdigest(key,text) OpenSSL::HMAC.hexdigest('sha512', key, text) end |