[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] HOTP v1.0.0 released

RubyTalk@gmail.com

11/2/2007 8:12:00 PM

HOTP v1.0.0

Implements RFC 4226 using Ruby. (http://www.ietf.org/rfc/r...)
HOTP is an HMAC-SHA1 based algorithm

The latest version of hotp can be found at

* http://rubyforge...

The HOTP object can be used to calculate the HOTP value for any secret
and count. The number of digits in the HOTP value is determined by an
optional parameter. The default HOTP value is 6 digits long.

require "hotp"
secret = "12345678901234567890"
count = 0
puts(HOTP::hotp(secret,count)) # => "755224"

Stephen Becker IV