encode_hex
Encodes bytes into their hexadecimal representation.
encode_hex(bytes: blob|string) -> string
Description
Section titled “Description”Encodes bytes into their hexadecimal representation.
bytes: blob|string
Section titled “bytes: blob|string”The value to encode.
Examples
Section titled “Examples”Encode a string to hex
Section titled “Encode a string to hex”from {bytes: "Tenzir"}encoded = bytes.encode_hex()
{bytes: "Tenzir", encoded: "54656E7A6972"}