PHP Classes

gpass: Authenticate users with graphical images

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 266 All time: 7,760 This week: 455Up
Version License PHP version Categories
gpass 0.1GNU General Publi...5.0PHP 5, Graphics, User Management
Description 

Author

This class can authenticate users with graphical images.

It generates HTML with JavaScript to display a series of images that correspond code letters relative to a reference image that form the user password.

As the user clicks on the images, a hidden form input is updated with the images codes.

The class can process the submitted form and decode the submitted password code.

Innovation Award
PHP Programming Innovation award nominee
December 2015
Number 6


Prize: One subscription to the PDF edition of the PHP Architect magazine
Text based passwords are often easy to crack because users choose obvious words for the passwords.

This class lets users choose passwords and authenticate with graphical images that are mapped to password characters. The users click on the images to enter the passwords.

This way the associated text passwords are not made of words that would be easy to crack.

Manuel Lemos
Picture of Miguel
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

 

Example

<?php
require("gPass.class.php");
?>
<!DOCTYPE>
<html|>

<head>
    <title>gPass Test</title>
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</head>

<body>
    <h1>Please Select 5 Images</h1>
    <?php
        $n
=new gPass();
       
//some changes
       
$n->lenTag=25;
       
$n->codePosition=18;
       
$n->sizeImages=32;
       
//generate code JS (with Jquery)
       
echo $n->generateJs();
       
//generate panel with images
       
echo $n->generateBoard();

       
//if request post is true decodekeys return the code
       
$key= $n->decodeKeys();
       
//your code here (example)
       
if($key!=null){
            foreach(
$key as $img)
                echo
"Image selected ".$img."<br/>";
        }
   
?>
</body>

</html>


  Files folder image Files (22)  
File Role Description
Files folder imageicons (20 files)
Plain text file gPass.class.php Class class
Accessible without login Plain text file test.php Example example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:266
This week:0
All time:7,760
This week:455Up