Class: HMAC::MD5
Instance Method Summary collapse
-
#initialize(key = nil) ⇒ MD5
constructor
A new instance of MD5.
Methods inherited from Base
#digest, #hexdigest, #reset_key, #set_key, #to_s, #update
Constructor Details
#initialize(key = nil) ⇒ MD5
Returns a new instance of MD5.
6 7 8 |
# File 'lib/hmac-md5.rb', line 6 def initialize(key = nil) super(Digest::MD5, 64, 16, key) end |