My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

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
Powered by Google Project Hosting