ruby-yubico


Ruby class for interaction with the Yubico API

Yubico.rb

Note: This project is deprecated and unmaintained. https://rubygems.org/gems/yubikey is probably a better choice.

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

```

Project Information

Labels:
api yubico ruby