Question:How do you encrypt data in php hash function? Use md5() function.
Answer
The md5() function uses MD5, a third-pary hash algorithm often used for creating digital signatures. HD5 is considered to be a one-way hashing algorithm, which means there is no practical way to dehash data that has been hashed using md5().
Prototype:
string md5(string str)
Example:
<?php
$val="secret";
$hash_val=md5($val);
echo $hash_val;
?>
+ Report
How do you encrypt data in php hash function? Use md5() function.