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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] HOTP v1.0.0 released
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password