Applications:PhpSec

From Yubico

Jump to: navigation, search

phpSec by Audun Larsen

Image:Php-sec.png


phpSec is a PHP5 library that provides you as a developer with a set of commonly (and some that should be) used methods, protecting your application against various attacks.

» phpSec homepage
» phpSec GitHub page


Although phpSec is much more than a Yubikey authentication library it does that as well.

 phpsecYubikey::$_clientId     = 0000; // Your client ID
 phpsecYubikey::$_clientSecret = ; // Your client secret.
 if(phpsecYubikey::verify($_POST['yubikey'])) {
   echo "Valid!";
 } else {
   echo phpsecYubikey::$lastError;
 }
Personal tools
Authors/Administrators