PHP Classes

PHP Bcrypt Class: Generate and validate a password hash using crypt

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 386 All time: 6,668 This week: 141Up
Version License PHP version Categories
bcrypt-class 1.0.0GNU Lesser Genera...5.0PHP 5, Cryptography


This class can generate and validate a password hash using crypt.

It can take a password text and generate a hash using the crypt function together with a random salt.

The class can use the crypt function twice to make it more difficult to find the original password against rainbow tables.

It can also check if a given password matches a hash generated previously with the class.

Picture of Jan Altensen
  Performance   Level  
Name: Jan Altensen <contact>
Classes: 12 packages by
Country: Germany Germany
Age: 30
All time rank: 105866 in Germany Germany
Week rank: 641 Up26 in Germany Germany Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Plain text file bcrypt.class.php Class main class
Plain text file example.php Example example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,668
This week:141Up
User Comments (1)
Thats a good class :-)
9 years ago (Josť Filipe Lopes Santos)