MD5 Hash Generator
| String: | |
| MD5 Hash: | |
What is MD5 ?
MD5 is an algorithm used to encode strings. Strings encoded with MD5 cannot be decoded. Is used to store customers password in databases, because in case of intrusion, passwords can not be understood.
Example: plain text “password” is stored as: “5f4dcc3b5aa765d61d8327deb882cf99″ ;
The length of resulting string is 32 chars, it is not important of how long the input string is.
PHP function for this is: md5() ( Calculate the md5 hash of a string)
Example:
<?php
$str = 'apple';
if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') {
echo "Would you like a green or red apple?";
}
?>
More technical details:
http://en.wikipedia.org/wiki/MD5

