Login   Register  
PHP Classes
elePHPant
Icontem

Security_Token: Generate tokens to protect against CSRF attacks

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 (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-08-26 (7 years ago) RSS 2.0 feedStarStarStarStar 64%Total: 1,190 This week: 1All time: 2,963 This week: 1,398Up
Version License PHP version Categories  
security_token 1.0GNU General Public Lice...5.0HTML, PHP 5, Security
Description Author  

This package can be used to generate security tokens to protect against cross-site request forgery (CSRF) attacks.

It generate a time based token to be used for instance in hidden form fields.

The presence of the token in the submitted form values can be verified and an eventual attack can be avoided by not processing the form if the token is not present or is not valid.

Picture of MARY Matthieu
Name: MARY Matthieu <contact>
Classes: 19 packages by
Country: France, Metropolitan France, Metropolitan
Age: 36
All time rank: 241 in France, Metropolitan France, Metropolitan
Week rank: 194 Down1 in France, Metropolitan France, Metropolitan Equal

  Files folder image Files  
File Role Description
Files folder imageSecurity (1 file)
Files folder imageTest (1 directory)
Files folder imageTestlaunchers (1 directory)
Files folder imageValidator (3 files)
Accessible without login Plain text file Autoload.php Aux. loader
Accessible without login Plain text file LICENCE Lic. GPL Licence file

  Files folder image Files  /  Security  
File Role Description
  Plain text file Token.php Class class which manage token

  Files folder image Files  /  Test  
File Role Description
Files folder imageValidator (2 files)

  Files folder image Files  /  Test  /  Validator  
File Role Description
  Plain text file Base.php Class unit test case for Validator_Base class
  Plain text file SessionToken.php Class unit test case for Validator_SessionToken class

  Files folder image Files  /  Testlaunchers  
File Role Description
Files folder imageValidator (2 files)

  Files folder image Files  /  Testlaunchers  /  Validator  
File Role Description
  Accessible without login Plain text file Base.php Test launch unit test case Test_Validator_Base
  Accessible without login Plain text file SessionToken.php Test launch unit test case Test_Valdator_SessionToken.php

  Files folder image Files  /  Validator  
File Role Description
  Plain text file Base.php Class base class for validation
  Plain text file SessionToken.php Class check token from sessions
  Plain text file Token.php Class check token validity

Downloadsecurity_token-2007-08-26.zip 11KB
Downloadsecurity_token-2007-08-26.tar.gz 8KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Html Download .zip .tar.gz to generate output in our forms Required
 Version Control Unique User Downloads Download Rankings  
 0%Total:1,190All time:2,963
 This week:1This week:1,398Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:-
Tests:83%StarStarStarStarStar
Videos:-
Overall:64%StarStarStarStar
Rank:557