PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,708 This week: 1All time: 2,157 This week: 1,201Up
Version License PHP version Categories  
tokengrid 1.3GNU Lesser Genera...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 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: 7 packages by
Country: Switzerland Switzerland
Age: 46
All time rank: 5168 in Switzerland Switzerland
Week rank: 135 Up2 in Switzerland Switzerland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 2x

  • 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
Accessible without login Plain text file tokengrid.pdf.demo.php Example OPTIONAL - PDF token creation demo (needs
Accessible without login Image file 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,708All time:2,157
 This week:1This week:1,201Up