Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

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"}

Last updated: