Login   Register  
PHP Classes
elePHPant
Icontem

Hash

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Julien PACHET
Name: Julien PACHET <e-mail contact>
Packages: 15 Browse all classes by Julien PACHET Browse all classes by
Country: France France - PHP jobs in France
Age: 36
All time rank: 271 in France France
Week rank: 57 Down4 in France France Down


  Detailed description   Download .zip .tar.gz  
This class is meant to create hash strings that are used as keys to store private data.

The hash strings and the private data are stored in a database table so it can verified securely only on the server side. This capability can be for instance to prevent link stealing.

You may construct an hash string from:

- Session id of the user
- Private data of the server
- Private data of the web site
- An item to check
- Timestamp of a query
- A maximum number of accesses
- A maximum duration

Next, in another page, the class can check whether the hash is valid by passing as parameter in the UL, depending on:

- The item to check
- The session id of the user
- The private data of the server
- The private data of the Web site
- The moment when the has was saved in database
- The moment and the number of the access

  Classes of Julien PACHET  >  Hash  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Hash
Base name: class_hash
Description: Store and validate hashes for data authentication
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1986 users
All time rank: 1779
Week users: 2 users
Week rank: 1368 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes
Group folder image Validation Validation algorithms View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
Link Description
class_hash.png picture of the algorithm validation
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file biblio_mysql.inc.php Aux. Function library to manage mysql database
Plain text file class_hash.inc.php Class base class source
Accessible without login Plain text file hash_check.php Example Second page to check the hash and let access to the ressource
Accessible without login Plain text file hash_start.php Example Start page with the link to the check page with the resource

Download all files: class_hash.tar.gz class_hash.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.