File: hmac-sha1.rb

package info (click to toggle)
ruby-hmac 0.4.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: ruby: 201; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
require 'hmac'
require 'digest/sha1'

module HMAC
  class SHA1 < Base
    def initialize(key = nil)
      super(Digest::SHA1, 64, 20, key)
    end
    public_class_method :new, :digest, :hexdigest
  end
end