Here's a little function I wrote for use in one of my projects:
PHP Code:function Protect($string, $salt = "FGTERTYBE5434576876897RETBREY"){
$string = str_rot13(hash("whirlpool", $salt . str_rot13($string)));
Return $string;
Usage:
Hashing with the default salt:
Hashing with a custom salt:PHP Code:Protect("PAssw0rd");
Enjoy.PHP Code:Protect("PassW0rd", "MYsA1t");
![]()






Reply With Quote



