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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=105</id>
<entry>
<author><name><![CDATA[jwoltman]]></name></author>
<updated>2008-06-17T23:14:02+01:00</updated>
<published>2008-06-17T23:14:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=105&amp;p=309#p309</id>
<link href="https://forum.yubico.com/viewtopic.php?t=105&amp;p=309#p309"/>
<title type="html"><![CDATA[Re: Another PHP implementation]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=105&amp;p=309#p309"><![CDATA[
I have updated the implementation to better support SQLite.  You use the add_user() method to insert users into a database along with their Yubikey info.  Use authenticate_user() to authenticate a user against the database.  The method setup_database() creates a sample database.  The constructor for the SQLiteAuth class takes the path to the database as its only parameter.<br /><br />You can download the updates at:<br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubico-php-lib/downloads/list">http://code.google.com/p/yubico-php-lib/downloads/list</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=125">jwoltman</a> — Tue Jun 17, 2008 11:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jwoltman]]></name></author>
<updated>2008-06-16T19:18:40+01:00</updated>
<published>2008-06-16T19:18:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=105&amp;p=300#p300</id>
<link href="https://forum.yubico.com/viewtopic.php?t=105&amp;p=300#p300"/>
<title type="html"><![CDATA[Another PHP implementation]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=105&amp;p=300#p300"><![CDATA[
I have updated the Google Code project at <!-- m --><a class="postlink" href="http://code.google.com/p/yubico-php-lib/">http://code.google.com/p/yubico-php-lib/</a><!-- m --> with all the code I've been working on.  Here's a brief intro:<br /><ul><li>ModHex class - lets anyone convert to/from ModHex</li><li>Yubikey class - decodes a Yubikey into a useful array of values</li><li>YubiAuthenticator - performs the standard validations per the cookbook, including private ID, counter, and timestamp.  You extend this class to work with your own backend to store OTP data.</li></ul><br />Documentation and a new zip file are available - the documention is also here: <!-- m --><a class="postlink" href="http://yubico-php-lib.googlecode.com/files/yubikey-doc-0.1.html">http://yubico-php-lib.googlecode.com/fi ... c-0.1.html</a><!-- m --><br /><br /><strong>Please Contribute</strong><br />I'm not a PHP ace, so if someone could help me make it better, please do.  Areas that need work:<br /><ul><li>More efficient OTP processing</li><li>Extended counter validation</li><li>The timer code is pretty weak, and could use some help</li></ul><br />Thoughts and criticism welcome.<br /><br /><strong>Quick HOW-TO Guide</strong><br />Based on the SQLite example.<br /><ol style="list-style-type: decimal"><li>Populate a database with users and their public IDs and Yubikey AES keys and counters.</li><li>Subclass AuthData into UserAuthData and add a $user field to it.</li><li>Subclass YubiAuthenticator to use an UPDATE query in updateAuthData for storing OTP data.</li><li>Get a username and OTP from a user.</li><li>Create a new UserAuthData object and set the $user field to the username.</li><li>Use a SELECT to get the AES key based on the username.</li><li>Populate the UserAuthData object with the AES key.</li><li>Call authenticate() to verify the user and their counter.</li><li>If the result is SUCCESS, then all the checks were passed.</li></ol><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=125">jwoltman</a> — Mon Jun 16, 2008 7:18 pm</p><hr />
]]></content>
</entry>
</feed>