MD5
All functions > STRING > MD5
Returns the MD5 hash of a string as a 32-character hexadecimal string.
Signatures
Returns: 32-character lowercase hexadecimal MD5 hash
MD5(string: VARCHAR) → VARCHAR sql
| Parameter | Type | Required | Description |
|---|---|---|---|
string | VARCHAR | Yes | String to hash |
Notes
- Returns a 128-bit hash as a 32-character lowercase hex string
- Deterministic: same input always produces the same hash
- Not suitable for security-sensitive applications; use SHA256 instead
- Returns NULL if the input is NULL
Examples
FeatureQL
SELECT
f1 := MD5('ABC'), -- Hash of uppercase string
f2 := MD5('hello'), -- Hash of lowercase string
f3 := MD5('') -- Hash of empty string
;Result
| f1 VARCHAR | f2 VARCHAR | f3 VARCHAR |
|---|---|---|
| 902fbdd2b1df0c4f70b4a5d23525e932 | 5d41402abc4b2a76b9719d911017c592 | d41d8cd98f00b204e9800998ecf8427e |
On this page