<?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=5&amp;t=1085" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2013-06-17T11:42:42+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=1085</id>
<entry>
<author><name><![CDATA[Tom]]></name></author>
<updated>2013-06-17T11:42:42+01:00</updated>
<published>2013-06-17T11:42:42+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4065#p4065</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4065#p4065"/>
<title type="html"><![CDATA[Re: [QUESTION] how to implement validation in PHP?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4065#p4065"><![CDATA[
You can use YubiRADIUS as alternative<br /><br /><!-- m --><a class="postlink" href="https://www.yubico.com/products/services-software/yubiradius/">https://www.yubico.com/products/service ... ubiradius/</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2195">Tom</a> — Mon Jun 17, 2013 11:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mtassinari]]></name></author>
<updated>2013-06-17T10:34:04+01:00</updated>
<published>2013-06-17T10:34:04+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4064#p4064</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4064#p4064"/>
<title type="html"><![CDATA[Re: [QUESTION] how to implement validation in PHP?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4064#p4064"><![CDATA[
Thanks for the hints, I'll download them and study them right away.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2467">mtassinari</a> — Mon Jun 17, 2013 10:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tom]]></name></author>
<updated>2013-06-17T10:14:18+01:00</updated>
<published>2013-06-17T10:14:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4063#p4063</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4063#p4063"/>
<title type="html"><![CDATA[Re: [QUESTION] how to implement validation in PHP?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4063#p4063"><![CDATA[
You need this:<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/php-yubico">https://github.com/Yubico/php-yubico</a><!-- m --><br /><br />and this:<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/yubikey-val">https://github.com/Yubico/yubikey-val</a><!-- m --><br /><br />and this if you do not have a HSM:<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/yubikey-ksm">https://github.com/Yubico/yubikey-ksm</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2195">Tom</a> — Mon Jun 17, 2013 10:14 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mtassinari]]></name></author>
<updated>2013-06-06T15:32:15+01:00</updated>
<published>2013-06-06T15:32:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4027#p4027</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4027#p4027"/>
<title type="html"><![CDATA[[QUESTION] how to implement validation in PHP?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1085&amp;p=4027#p4027"><![CDATA[
Hi again,<br /><br />I am trying to understand how to implement OTP validation in a PHP web application which has no internet access, so it must not use the online Yubico validation server.<br /><br />I am not much concerned with the actual code, rather with the logical flow validation must follow.<br /><br />Suppose that a YubiKey is configured as follows:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Public ID: dd kg ub uh uh rv<br />Private ID: 54 e6 a5 4a cd 40<br />AES Key: b3 e1 86 d6 89 39 cb 99 8b 73 be 4b 8a 21 23 b9</div><br /><br />And that the web-app recieves the following OTP:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">ddkgubuhuhrvnclikhifnkbeifiuihdkkbcdgrlubvdg</div><br /><br />How do I then proceed validating it?<br /><br />Until now, here is what I have done:<br /><br />1. split the OTP in Public ID (ddkgubuhuhrv) and actual OTP (nclikhifnkbeifiuihdkkbcdgrlubvdg)<br />2. convert OTP from ModHex to binary, by first &quot;translating&quot; it to standard hexadecilmal and then to binary<br />3. decode the binary using the AES key, obtaining a new binary string<br /><br />But now, how do I go on?<br /><br />I have read the manual that I should perform a CRC16 check, so I found a PHP implementation of it, but on which string should I call it? And after that?<br /><br />Thanks in advance for your help.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2467">mtassinari</a> — Thu Jun 06, 2013 3:32 pm</p><hr />
]]></content>
</entry>
</feed>