Why
I created this class because there are too many people still saving simple md5 instead of more secure hashes.
The class should be fully PHP4 and PHP5 compatible and very easy to use. But also extended usage on its complex methods is possible.
Example
The usage of the class should be straight forward.
If you just want to use it, use the methods hash() and check().
EXAMPLE:
$secure_hash = new secure_hash;
$hash = $secure_hash->hash('pass');
if($secure_hash->check($hash, 'pass'))
echo "Password fits to hash.";
else
echo "Password does NOT fit to hash.";
That is all you need to know for just using it, but i have to tell, you will miss something important if you stop reading here.
Den ganzen Beitrag lesen...