Standard Library Hex Functions
function
encode_hex
encode_hex
encodes a string as a hexadecimal string.
Inputs
- Name
value
- Description
Any input string.
Output
- Name
value
- Description
The input string in its hexadecimal representation.
Example using encode_hex
output "encoded_hex" {
value = encode_hex("hello, world")
}
// > encoded_hex: 68656C6C6F2C20776F726C64