md5
stringGenerates an MD5 cryptographic hash of a string
Syntax
md5(string) Parameters
string (string) The string to hash
Returns
string MD5 hash as hexadecimal string
Examples
Input:
md5("password") Output:
"5f4dcc3b5aa765d61d8327deb882cf99" Input:
md5("hello") Output:
"5d41402abc4b2a76b9719d911017c592" Input:
"test" | md5 Output:
"098f6bcd4621d373cade4e832627b4f6" The md5() function generates an MD5 cryptographic hash of a string. MD5 produces a 128-bit (32 hexadecimal character) hash.
Usage
Use md5() for checksums, non-security caching keys, or legacy compatibility. Note: MD5 is cryptographically broken and should not be used for security purposes; use SHA-256 or SHA-512 instead.