Login   Register  
PHP Classes
elePHPant
Icontem

Secure Get: Generate and validate URLs to prevent tampering

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-01-31 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 739 All time: 4,135 This week: 1,486Up
Version License PHP version Categories  
secure-get 1.0GNU Lesser General Publ...4.0PHP 5, Validation, Security
Description Author  

This class can generate and validate URLs to prevent tampering.

It takes an associative array of parameters to pass in a link.

The class assembles the link parameter keys and values and adds an extra parameter which is the SHA1 value of all parameters adding a secret prefix and a suffix salt values.

The class can also verify if the parameter values are correct in a page of the previously generated URL checking against the passed SHA1 value.

Picture of Gianluca Zanferrari
Name: Gianluca Zanferrari <contact>
Classes: 15 packages by
Country: The Netherlands The Netherlands
Age: 48
All time rank: 2809 in The Netherlands The Netherlands
Week rank: 151 Up6 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file secure_get.class.php Class main class
Accessible without login Plain text file secure_get.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%Total:739All time:4,135
 This week:0This week:1,486Up