PHP string md5() functionPHP string md5() is predefined function. It is used to calculate the MD5 hash of a string. It uses the RSA DATA security. It returns the hash as a 32 character hexadecimal number. Note: We should not use this function for secure passwords, due to the fast nature of this hashing algorithm.Syntax:
Example 1Output: Your string is:PHP By using md5() functon:2fec392304a5c23ac138da22847f9b7c Example 2Output: 'PHP' string is equall to encrypted string Example 3Output: Your string is: PHP TRUE - Raw 16 character binary format: /�9# ��:�8�"??| FALSE - 32 character hex number: 2fec392304a5c23ac138da22847f9b7c Example 4Output: Your string is: PHP By using md5() function: 2fec392304a5c23ac138da22847f9b7c Note: The encrypted value "8b1a9953c4611296a827abf8c47804d7" is not equal to "PHP" string so Hello PHP message not displayed.Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India