<?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=1685" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-12-26T01:57:13+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=8&amp;t=1685</id>
<entry>
<author><name><![CDATA[multiOTP]]></name></author>
<updated>2014-12-26T01:57:13+01:00</updated>
<published>2014-12-26T01:57:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1685&amp;p=6630#p6630</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1685&amp;p=6630#p6630"/>
<title type="html"><![CDATA[Pure PHP Yubikey class (no dependency)]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1685&amp;p=6630#p6630"><![CDATA[
Hi there,<br /><br />The LGPL PHP class Yubikey (<a href="http://developer.sysco.ch/php/#yubikey" class="postlink">http://developer.sysco.ch/php/#yubikey</a>) is working <strong>without any dependency</strong>! Yubico OTP is implemented, AES decryption (AES128 class from Jose Manuel Busto Lopez) is directly integrated in the class, and Dvorak keyboard should be supported. It will be a breeze to implement it, in ... 3 lines !!!<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">require_once('yubikey.class.php');<br />$yubikey = new Yubikey();<br />$result = $yubikey-&gt;CheckYubicoOtp($yubico_modhex_encrypted_part, $secret, $last_valid_position);<br /></div><br />Possible returned value is one of the following:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">                     OK  The OTP is valid.<br />                BAD_OTP  The OTP is invalid format.<br />           REPLAYED_OTP  The OTP has already been seen by the service.<br /></div><br />Comments and suggestions welcome!<br /><br />If you need also an OATH-HOTP support, have a look to our more complete multiOTP open source project (<a href="http://www.multiotp.net/" class="postlink">http://www.multiotp.net/</a>).<br />If you need a YubiCloud PHP solution, have a look at the <a href="http://forum.yubico.com/viewtopic.php?f=8&amp;t=1684" class="postlink">Pure PHP Yubicloud class</a> (also without dependency).<br /><br />Best regards,<br /><br />Andre<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3398">multiOTP</a> — Fri Dec 26, 2014 1:57 am</p><hr />
]]></content>
</entry>
</feed>