davetron5000 / ruby-hmac forked from butter71/ruby-hmac

An implementation of the HMAC authentication code in Ruby, originally from Daiki Ueno

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file History.txt Wed Aug 20 09:44:46 -0700 2008 Move hoe to development_dependency so that hoe ... [blaine]
file Manifest.txt
file README.rdoc
file Rakefile
directory lib/ Tue May 19 10:16:46 -0700 2009 port to both ruby 1.8 and 1.9. Signed-off-by: ... [bryan d. o'connor]
file ruby-hmac.gemspec
directory test/ Mon May 19 11:23:27 -0700 2008 First commit [Geoffrey Grosenbach]
README.rdoc

ruby-hmac

    by Daiki Ueno
    http://ruby-hmac.rubyforge.org

DESCRIPTION:

This module provides common interface to HMAC functionality. HMAC is a kind of "Message Authentication Code" (MAC) algorithm whose standard is documented in RFC2104. Namely, a MAC provides a way to check the integrity of information transmitted over or stored in an unreliable medium, based on a secret key.

Originally written by Daiki Ueno. Converted to a RubyGem by Geoffrey Grosenbach

USAGE:

    require 'hmac'
    require 'hmac_sha1.rb'

    key = get_key_for_signing
    sha1 = HMAC::SHA1.new(key)
    sha1 << get_some_text_to_digest
    sha1 << get_some_more_text_to_digest
    puts sha1.hextdigest()

    # Or, if you like base64 encodings
    require 'base64'
    puts Base64.encode64(sha1.digest())

LICENSE:

(The MIT License)

Copyright © 2007 Daiki Ueno

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.