Unix and Linux Discussions Tagged with md5 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
2,150 |
Shell Programming and Scripting |
|
|
|
5 |
14,449 |
Shell Programming and Scripting |
|
|
|
2 |
7,436 |
Cybersecurity |
|
|
|
2 |
36,415 |
Ubuntu |
|
|
|
1 |
9,039 |
Cybersecurity |
|
|
|
17 |
7,571 |
Shell Programming and Scripting |
|
|
|
5 |
16,316 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,279 |
Shell Programming and Scripting |
|
|
|
1 |
16,622 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,082 |
Shell Programming and Scripting |
|
|
|
2 |
9,231 |
Solaris |
|
|
|
1 |
6,307 |
Shell Programming and Scripting |
|
|
|
3 |
29,876 |
Shell Programming and Scripting |
|
|
|
1 |
3,489 |
Web Development |
|
|
|
1 |
3,040 |
Solaris |
|
|
|
0 |
1,423 |
Software Releases - RSS News |
|
|
|
1 |
2,066 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,810 |
Filesystems, Disks and Memory |
|
|
|
1 |
3,951 |
Shell Programming and Scripting |
MD5(3) 1 MD5(3)
md5 - Calculate the md5 hash of a string
SYNOPSIS
string md5 (string $str, [bool $raw_output = false])
DESCRIPTION
Calculates the MD5 hash of $str using the RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash.
PARAMETERS
o $str
- The string.
o $raw_output
- If the optional $raw_output is set to TRUE, then the md5 digest is instead returned in raw binary format with a length of 16.
RETURN VALUES
Returns the hash as a 32-character hexadecimal number.
EXAMPLES
Example #1
A md5(3) example
<?php
$str = 'apple';
if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') {
echo "Would you like a green or red apple?";
}
?>
NOTES
Note
Secure password hashing
It is not recommended to use this function to secure passwords, due to the fast nature of this hashing algorithm. See here for
details.
SEE ALSO
md5_file(3), sha1_file(3), crc32(3), sha1(3), hash(3), crypt(3), password_hash(3).
PHP Documentation Group MD5(3)