# crypto/hex-encode
Encode a string's bytes into lowercase hexadecimal.
## Syntax
[crypto/hex-encode $data]
## Parameters
- `$data` — String to encode
## Examples
[crypto/hex-encode "hello"] # 68656c6c6f [crypto/hex-encode $payload]
## Returns
Lowercase hex string of length `2 * len($data)`.
## See Also
`crypto/hex-decode`, `crypto/b64-encode`, `crypto/sha256`