PHP Classes
elePHPant
Icontem

One Hash Salted Password: Generate and check passwords using a salted hash

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-01-25 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 68 This week: 1All time: 9,218 This week: 438Up
Version License PHP version Categories
onehashsaltedpasswor 1.0GNU General Publi...5PHP 5, Cryptography
Description Author

This class can generate and check passwords using a salted hash.

It takes a given password text and generates a hash using a random salt string value.

The class can also check a previously generated hash matches the hash of a given password using the same salt string value.

Name: Ákos Nikházy <contact>
Classes: 5 packages by
Country: Hungary Hungary
Age: 31
All time rank: 7677 in Hungary Hungary
Week rank: 35 Up3 in Hungary Hungary Up

Details

OneHashSaltedPassword

This class is for generate and check password hashes that actually contains the salt too.

The idea:

This way in the database you can store a single hash value in the password column while it is salted properly so even at the same password you will see different hash values.

Also if an attacker steals only your user database they will assume you store your password in plain sha256, not knowing it is actually a combination of a password and a salt, making their work harder.

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file OneHashSaltedPassword-demo.php Example Example script
Plain text file OneHashSaltedPassword.class.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:68
This week:1
All time:9,218
This week:438Up