Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 10:20 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Dec 26, 2014 1:57 am 
Offline

Joined: Sat Dec 20, 2014 2:59 am
Posts: 4
Hi there,

The LGPL PHP class Yubikey (http://developer.sysco.ch/php/#yubikey) is working without any dependency! 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 !!!
Code:
require_once('yubikey.class.php');
$yubikey = new Yubikey();
$result = $yubikey->CheckYubicoOtp($yubico_modhex_encrypted_part, $secret, $last_valid_position);

Possible returned value is one of the following:
Code:
                     OK  The OTP is valid.
                BAD_OTP  The OTP is invalid format.
           REPLAYED_OTP  The OTP has already been seen by the service.

Comments and suggestions welcome!

If you need also an OATH-HOTP support, have a look to our more complete multiOTP open source project (http://www.multiotp.net/).
If you need a YubiCloud PHP solution, have a look at the Pure PHP Yubicloud class (also without dependency).

Best regards,

Andre


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group