PHP md5() function is utilized to the calculated MD5 hash (the hash as a 32-character hexadecimal number) of a specified string.
PHP md5() function uses the "RSA Data Security, Inc. md5 Message-Digest Algorithm" and returns that hash.
Syntax for PHP md5() function
md5(string,raw)
string : Required. The input string
raw : Optional. Defines hex or binary output format:
TRUE – Returns the digest in raw binary format with a length of 16.
FALSE – Default. Returns the digest in raw hex format with a length of 32.
Example on PHP md5() function
<?php
$str_name = "Good Day";
echo md5($str_name);
?>
Output will be:
e18d0d486c1d7d3a5fb02e637c0455ff
PHP md5() function uses the "RSA Data Security, Inc. md5 Message-Digest Algorithm" and returns that hash.
Syntax for PHP md5() function
md5(string,raw)
string : Required. The input string
raw : Optional. Defines hex or binary output format:
TRUE – Returns the digest in raw binary format with a length of 16.
FALSE – Default. Returns the digest in raw hex format with a length of 32.
Example on PHP md5() function
<?php
$str_name = "Good Day";
echo md5($str_name);
?>
Output will be:
e18d0d486c1d7d3a5fb02e637c0455ff
0 comments:
Post a Comment