PHP Classes

Security_Token: Generate tokens to protect against CSRF attacks

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,311 All time: 2,949 This week: 488Up
Version License PHP version Categories
security_token 1.0.0GNU General Publi...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
Age: 45
All time rank: 251 in France, Metropolitan
Week rank: 66 Down1 in France, Metropolitan Equal

  Files folder image Files (10)  
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 (10)  /  Security  
File Role Description
  Plain text file Token.php Class class which manage token

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

  Files folder image Files (10)  /  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 (10)  /  Testlaunchers  
File Role Description
Files folder imageValidator (2 files)

  Files folder image Files (10)  /  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 (10)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadsecurity_token-2007-08-26.zip 11KB
Downloadsecurity_token-2007-08-26.tar.gz
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,311
This week:0
All time:2,949
This week:488Up
 User Ratings  
 
 All time
Utility:85%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:-
Tests:75%StarStarStarStar
Videos:-
Overall:59%StarStarStar
Rank:1363