My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: api, yubico, ruby
Show all Featured downloads:
Ruby-Yubikey.tgz
People details
Project owners:
  simon75j

Yubico.rb

The Yubico Ruby class enables use of the Yubikey device in Ruby. This simple class lets you authenticate and manage keys through Ruby.

More information on the Yubikey can be found at Yubico.com.

Implementation

Usage and implementation are extremely simple. The documentation has a fuller description in place, but here's a quick-start:

require 'ruby-yubico/yubico'

api_key = "" # optionally use this to verify responses
yubi_key = Yubico.new(3, api_key)
otp = "" ## The OTP from the YubiKey goes here.

result = yk.verify(otp)
## result contains "OK" if OTP is correct








Hosted by Google Code