-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
48 lines (32 loc) · 974 Bytes
/
README
File metadata and controls
48 lines (32 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
= ruby-otp
by dougsko
* http://github.com/dougsko/ruby-otp
original program by Guillaume Pierronnet
* http://ruby-otp.rubyforge.org
* http://rubyforge.org/projects/ruby-otp/
== DESCRIPTION:
ruby-otp is a One Time Password library, compatible with OPIE and S/KEY, and RFC 1760 compliant.
This fork supports SHA1 and several SHA2 hashing algorithms.
== FEATURES/PROBLEMS:
* pure ruby
* RFC 1760 compliant
* OPIE and S/KEY compatible
* Mostly RFC 2289 compliant
== 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
== REQUIREMENTS:
* openssl for OpenSSL::Digest::MD4
== INSTALL:
* sudo gem install ruby-otp
== LICENSE:
GPL