Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
MD5 Hash Function in PHP
How to calculate the MD5 hash of a string in PHP?
✍: FYIcenter.com
You can use the following md5() function to calculate the MD5 hash of a string using the MD5 Message-Digest Algorithm.
string md5 ( string $str [, bool $raw_output = false ] )
str - The input string.
raw_output - If TRUE, then the md5 digest is instead returned in raw binary format with a length of 16.
(return) - The hash value as a 32-character hexadecimal number, or as binary string of 16 bytes, if $raw_output=true.
For example,
$str = 'apple';
if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') {
echo "Would you like a green or red apple?";
}
2015-11-23, ∼3445🔥, 2💬
Popular Posts:
How to install Microsoft Teams desktop version on Windows 7? I am tired of using Microsoft Teams Web...
I have an Apple iPad Air Model MD788C/A. Is it good? Yes. Apple iPad Air Model MD788C/A is a very go...
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
How to change the default Save Path on qBittorrent? By default, qBittorrent uses "Downloads" directo...
How to download and install SoapUI on Windows systems? Here are the steps to download and install So...