PDA

View Full Version : Hashing


Ultragames
11-18-2004, 07:29 AM
the PHP and zend sites show how to hash something easily, but i dont know how to get words out of a line of hash. If ayone could give me a full example of text to hash to text, or better yet, a tut, that would rock!

Thanks guys.

celestine
11-18-2004, 07:43 AM
If you mean using the md5() function, its v simple. You cannot decrypt a hash, its one-way. You can compare the encrypted versions though to check if they match.

$string = "blah blah blah";
$hashed = md5($string);


// so u can take something out of database etc and compare with $hashed. if its the same, it verified.

raf
11-18-2004, 08:36 AM
some more info http://www.codingforums.com/showpost.php?p=213544&postcount=4