Class: HMAC::SHA1

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

Instance Method Summary collapse

Methods inherited from Base

#digest, #hexdigest, #reset_key, #set_key, #to_s, #update

Constructor Details

#initialize(key = nil) ⇒ SHA1

Returns a new instance of SHA1.



6
7
8
# File 'lib/hmac-sha1.rb', line 6

def initialize(key = nil)
  super(Digest::SHA1, 64, 20, key)
end