github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/job-specification/hcl2/functions/crypto/md5.mdx (about) 1 --- 2 layout: docs 3 page_title: md5 - Functions - Configuration Language 4 description: |- 5 The md5 function computes the MD5 hash of a given string and encodes it 6 with hexadecimal digits. 7 --- 8 9 # `md5` Function 10 11 `md5` computes the MD5 hash of a given string and encodes it with 12 hexadecimal digits. 13 14 The given string is first encoded as UTF-8 and then the MD5 algorithm is applied 15 as defined in [RFC 1321](https://tools.ietf.org/html/rfc1321). The raw hash is 16 then encoded to lowercase hexadecimal digits before returning. 17 18 Before using this function for anything security-sensitive, refer to 19 [RFC 6151](https://tools.ietf.org/html/rfc6151) for updated security 20 considerations applying to the MD5 algorithm. 21 22 ## Examples 23 24 ```shell-session 25 > md5("hello world") 26 5eb63bbbe01eeed093cb22bb8f5acdc3 27 ```