dnsjit.lib.base64url(3)

dnsjit.lib.base64url3

Utility library to convert data to base64url format

Usage

local base64url = require("dnsjit.lib.base64url")

Encoding and decoding lua strings

local encoded = base64url.encode("abcd")
local decoded = base64url.decode(encoded)

Encoding C byte arrays

local pl -- pl is core.object.payload
local encoded = base64url.encode(pl.payload, pl.len)

Overview

Encode and decode data to/from base64url format.

Functions

Base64Url.encode(data, data_len)

Encode lua string or C byte array to base64url representation. The input string may contain non-printable characters.

data_len is length of the input data (optional for lua strings, required for C byte arrays).

Base64Url.decode(data)

Decode a base64url encoded lua string. The output string may contain non-printable characters.

AUTHORS and CONTRIBUTORS

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Bugs

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

From dnsjit 1.5.0-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.