security.md5
Generates an MD5 hash of a string.
WARNING
MD5 isn't secure. Use security.sha256 for passwords, signatures or anything security-sensitive.
js
security.md5(value)Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Value to hash. |
Returns
stringThe hash, as a hexadecimal string.
Examples
js
const hash = security.md5("Hello"); // "8b1a9953c4611296a827abf8c47804d7"