ruby-otp is a One Time Password library, compatible with OPIE and S/KEY, and RFC 1760 compliant.
= ruby-otp
== DESCRIPTION:
ruby-otp is a One Time Password library, compatible with OPIE and S/KEY, and RFC 1760 compliant.
== FEATURES/PROBLEMS:
== SYNOPSIS:
seq_num = 497 seed = "aa3423" otp = OTP.new(seq_num, seed, "my really private password", "md5") expected_sentence = otp.to_s.downcase
puts "please enter the sentence from your OTP calculator seq_num: #{seq_num}, seed: #{seed}" sentence = gets.chop
if expected_sentence == sentence.downcase puts "access granted" else puts "you're not authorized" end
== TODO
== REQUIREMENTS:
== INSTALL:
== LICENSE:
GPL