PHP md5() function is used to generate the MD5 hash of a string. It returns the hash as a 32 character hexadecimal number. The md5() function uses the RSA DATA security, MD5 Message-Digest Algorithm. PHP md5() is predefined function.
Syntax :
md5(string,binary) ;
Parameter Values,
string : Required. It takes a string.
binary : Optional. Specifies hex or binary output format.
TRUE - Raw 16 character binary format
FALSE - Default. 32 character hex number
md5() function returns encrypted string. We can not get decrypted value of encrypted string returned by md5() function.
Let's see below example to understand md5() function.
Comments