For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/cryptography/md5.md.

md5

Computes the MD5 checksum of a string, returning a 32-character hexadecimal digest.

Signature

md5(str: string) -> string

Parameters

ParameterTypeRequiredDescription
strstringyesInput string

Return value

Returns the documented result for the function signature.

Example

Security note

MD5 is suitable for checksums such as cache keys or weak ETags, not for security-sensitive hashing.

respond {
  status = 200
  headers = { "ETag" = format("\"%s\"", md5(json_encode(steps.find_user.result))) }
  body = steps.find_user.result
}