<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=8&amp;t=305" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2012-08-06T08:26:02+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=8&amp;t=305</id>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-06T08:26:02+01:00</updated>
<published>2012-08-06T08:26:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=305&amp;p=3194#p3194</id>
<link href="https://forum.yubico.com/viewtopic.php?t=305&amp;p=3194#p3194"/>
<title type="html"><![CDATA[Re: Yubikey Ruby Gem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=305&amp;p=3194#p3194"><![CDATA[
Hello,<br /><br />That code looks to be for decrypting OTPs, not verifying them. If you look at <!-- m --><a class="postlink" href="https://github.com/titanous/yubikey">https://github.com/titanous/yubikey</a><!-- m --> there is an example for verifying OTP with Yubikey::OTP::Verify<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Mon Aug 06, 2012 8:26 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gigdates]]></name></author>
<updated>2012-07-16T18:05:49+01:00</updated>
<published>2012-07-16T18:05:49+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=305&amp;p=3170#p3170</id>
<link href="https://forum.yubico.com/viewtopic.php?t=305&amp;p=3170#p3170"/>
<title type="html"><![CDATA[Re: Yubikey Ruby Gem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=305&amp;p=3170#p3170"><![CDATA[
<div class="quotetitle">Titanous wrote:</div><div class="quotecontent"><br />I've written a rubygem that decodes, decrypts, and parses Yubikey OTPs.<br /><br />Install it by running<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">sudo gem install yubikey</div><br />The source is available at <a href="http://github.com/titanous/yubikey" class="postlink">http://github.com/titanous/yubikey</a><br /><br />The gem wraps the C library for ModHex decoding, AES decryption, and CRC verification.<br /><br />Let me know if you have questions.<br /></div><br /><br />I went to <a href="https://upgrade.yubico.com/getapikey/" class="postlink">https://upgrade.yubico.com/getapikey/</a> and generated a secret key. This key looks like AES because it ends with an = sign.<br /><br />I tried this key when calling Yubikey::OTP.new(otp, key) and I get the following error.<br /><br />Yubikey::OTP::InvalidKeyError: Key must be 32 hex characters<br /><br />I then went to <a href="http://demo.yubico.com/php-yubico/Modhex_Calculator.php" class="postlink">http://demo.yubico.com/php-yubico/Modhex_Calculator.php</a> and tried a bunch of different combinations but the results are the same.<br /><br />HELP! <img src="https://forum.yubico.com/images/smilies/icon_e_sad.gif" alt=":(" title="Sad" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2100">gigdates</a> — Mon Jul 16, 2012 6:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Titanous]]></name></author>
<updated>2009-04-03T03:00:42+01:00</updated>
<published>2009-04-03T03:00:42+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=305&amp;p=1373#p1373</id>
<link href="https://forum.yubico.com/viewtopic.php?t=305&amp;p=1373#p1373"/>
<title type="html"><![CDATA[Yubikey Ruby Gem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=305&amp;p=1373#p1373"><![CDATA[
I've written a rubygem that decodes, decrypts, and parses Yubikey OTPs.<br /><br />Install it by running<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">sudo gem install yubikey</div><br />The source is available at <a href="http://github.com/titanous/yubikey" class="postlink">http://github.com/titanous/yubikey</a><br /><br />The gem wraps the C library for ModHex decoding, AES decryption, and CRC verification.<br /><br />Let me know if you have questions.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=556">Titanous</a> — Fri Apr 03, 2009 3:00 am</p><hr />
]]></content>
</entry>
</feed>