PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ákos Nikházy   One Hash Salted Password   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: One Hash Salted Password
Generate and check passwords using a salted hash
Author: By
Last change:
Date: 6 years ago
Size: 505 bytes
 

Contents

Class file image Download

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.