Login   Register  
PHP Classes
elePHPant
Icontem

Secure Token Grid Authentication: Generate grid of tokens, authenticate user with it

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-04-22 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,689 This week: 2All time: 2,148 This week: 875Up
Version License PHP version Categories  
tokengrid 1.3GNU Lesser General Publ...5.0HTML, User Management, Security
Description Author  

This class can be used to generate a grid of tokens to authenticate users similar to those that banks provided to users to avoid account abuses after phishing attacks.

It generates a bidimensional array of tokens of limited length with letters and digits.

The generated grid is seeded by a given secret salt string and a specific id that may be used to generate unique grids for different applications and users.

The class may also verify whether a token entered by the user corresponds to a token of a random grid position.

The grid tokens may also be formatted in an HTML table for presentation in Web pages. A sample PDF extended class is also provided to create PDF documents with included grid (using the LGPL http://www.tcpdf.org library)

Innovation Award  
PHP Programming Innovation award nominee
April 2008
Number 7


Prize: One copy of VS.PHP
Phishing attacks have been causing many victims that have their bank accounts robbed by crackers that steal their account passwords.

Many banks are now giving their clients special cards with tables of token codes to increase the security and make it harder to steal accounts of phishing attack victims.

This class provides a solution to generate token code tables from PHP, as well to validate the codes entered by a site user.

Manuel Lemos
Picture of André Liechti
Name: André Liechti <contact>
Classes: 4 packages by
Country: Switzerland Switzerland
Age: 45
All time rank: 5828 in Switzerland Switzerland
Week rank: 302 Up4 in Switzerland Switzerland Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Screenshots  
  • tokencard.png
  Files folder image Files  
File Role Description
Plain text file tokengrid.class.php Class Main file, class definition
Accessible without login Plain text file tokengrid.demo.php Example Simple demo file
Accessible without login Plain text file tokengrid.pdf.class.php Example OPTIONAL - PDF token creation extended class demo (needs www.tcpdf.org)
Accessible without login Plain text file tokengrid.pdf.demo.php Example OPTIONAL - PDF token creation demo (needs www.tcpdf.org)
Accessible without login Image file demo.bank.png Data Clipart for PDF demo output
Accessible without login Image file demo.logo.jpg Data Clipart for PDF demo output
Accessible without login Plain text file README.TXT Doc. README FILE
Accessible without login Plain text file COPYING.LESSER Lic. LGPL Version 3.0
Accessible without login Plain text file COPYING Lic. GPL Version 3.0

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,689All time:2,148
 This week:2This week:875Up