Skip to content

encode_hex

Encodes bytes into their hexadecimal representation.

encode_hex(bytes: blob|string) -> string

Encodes bytes into their hexadecimal representation.

The value to encode.

from {bytes: "Tenzir"}
encoded = bytes.encode_hex()
{bytes: "Tenzir", encoded: "54656E7A6972"}

decode_hex