Skip to content

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 ​

ParameterTypeDescription
valuestringValue to hash.

Returns ​

string

The hash, as a hexadecimal string.

Examples ​

js
const hash = security.md5("Hello"); // "8b1a9953c4611296a827abf8c47804d7"