botan.hex_encode

Synopsis

local botan = require "botan"

botan.hex_encode(out_buffer: byte_span, input: byte_span, uppercase: boolean = true) -> byte_span (1)
botan.hex_encode(input: byte_span, uppercase: boolean = true) -> string (2)

Description

Perform hex encoding.

If provided, out_buffer should have at least (#input * 2) bytes.