PHP Classes

gpass: Authenticate users with graphical images

Recommend this page to a friend!
  Info   View files Example   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 266 This week: 1All time: 7,753 This week: 560Up
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  
Name: Miguel <contact>
Classes: 2 packages by
Country: Venezuela Venezuela
Age: 47
All time rank: 354014 in Venezuela Venezuela
Week rank: 411 Up4 in Venezuela Venezuela Up
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  
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

  Files folder image Files  /  icons  
File Role Description
  Accessible without login Image file a.png Icon icon
  Accessible without login Image file b.png Icon image icon
  Accessible without login Image file c.png Icon image icon
  Accessible without login Image file d.png Icon image icon
  Accessible without login Image file e.png Icon image icon
  Accessible without login Image file f.png Icon image icon
  Accessible without login Image file g.png Icon image icon
  Accessible without login Image file h.png Icon image icon
  Accessible without login Image file i.png Icon image icon
  Accessible without login Image file j.png Icon image icon
  Accessible without login Image file k.png Icon image icon
  Accessible without login Image file l.png Icon image icon
  Accessible without login Image file m.png Icon image icon
  Accessible without login Image file n.png Icon image icon
  Accessible without login Image file o.png Icon image icon
  Accessible without login Image file p.png Icon image icon
  Accessible without login Image file q.png Icon image icon
  Accessible without login Image file r.png Icon image icon
  Accessible without login Image file s.png Icon image icon
  Accessible without login Image file t.png Icon image icon

 Version Control Unique User Downloads Download Rankings  
 0%
Total:266
This week:1
All time:7,753
This week:560Up