diff options
author | Azul <azul@leap.se> | 2012-08-06 12:34:47 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-08-06 12:41:06 +0200 |
commit | 552574bfb0a0160935452b605bb262b5b52c4f67 (patch) | |
tree | 71ec6bba217db018f20a4270eacdcdb02c7a8dbe /lib/ruby-srp.rb | |
parent | 8d489f7c431cf24c84ac5fc23be1b9b3531b402b (diff) |
added authenticate! which raises SRP::WrongPassword if it fails, version 0.0.2
Diffstat (limited to 'lib/ruby-srp.rb')
-rw-r--r-- | lib/ruby-srp.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ruby-srp.rb b/lib/ruby-srp.rb new file mode 100644 index 0000000..7cbe06f --- /dev/null +++ b/lib/ruby-srp.rb @@ -0,0 +1,15 @@ +# Ruby library for the server side of the Secure Remote Password protocol + +# References +# `The Stanford SRP Homepage', +# http://srp.stanford.edu/ +# `SRP JavaScript Demo', +# http://srp.stanford.edu/demo/demo.html + +$:.unshift File.dirname(__FILE__) +module SRP + autoload :Client, 'srp/client' + autoload :Authentication, 'srp/authentication' + class WrongPassword < StandardError + end +end |