Importance of MD5 in PHP?

Importance of MD5 in PHP?
MD5 in PHP:
This generates a MD5 hash of the input string.

This could be very useful to store the password in the database in an encrypted form or any data in an encrypted form in the database.

Check the example below for info on how to use MD5 in PHP
$str1 = "My name is Slim Shady";
echo md5($str1);

The MD5 function returns the calculated MD5 hash on success and false if it fails.


Post a Comment