How to use crypt() for one-way string hashing in PHP

1 Answer

0 votes
$hash_string = crypt('PHP Solutions'); 
echo $hash_string . "<br /><br />";

$hash_string = crypt('PHP Solutions'); 
echo $hash_string . "<br />";

$input = "PHP Solutions";
$hash_input = crypt($input, $hash_string);
echo $hash_input . "<br />";


/*
run: 

$1$xb4.mP4.$5E0u.D7USVidqn.QUssfy.

$1$132..D4.$MdgPWnDJFj/E3hrevH4C.0
$1$132..D4.$MdgPWnDJFj/E3hrevH4C.0

*/

 



answered Jun 5, 2016 by avibootz

Related questions

...