dnsjit.lib.base64url(3)
π dnsjit.lib.base64url β the manual, but make it cute π
okay so bestie, you're reading the page for dnsjit.lib.base64url, which lives in the Library Functions Manual section (that's section 3, iykyk). it's a lil utility library that turns your data into base64url and back again. she's small, she's focused, she's iconic. π
β¨ NAME β¨
dnsjit.lib.base64url β a utility library to convert data to base64url format π¦
πΈ SYNOPSIS πΈ
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)
π DESCRIPTION π
literally just encode and decode data to and from base64url format. that's the whole vibe. no cap. β¨
π Functions
Base64Url.encode(data, data_len)β encodes a lua string or a C byte array into its base64url representation. and bestie, the input string is allowed to contain non-printable characters, she does not care, she handles it. πͺ
data_len is the length of the input data. it's optional for lua strings but required for C byte arrays β so don't come for me when the C array path needs it, okay? π
Base64Url.decode(data)β decodes a base64url encoded lua string. heads up: the output string may contain non-printable characters too, so don't be gagged when you see them. π
π SEE ALSO π
π AUTHORS and CONTRIBUTORS π
the absolute legends who made this happen:
- Jerry LundstrΓΆm (DNS-OARC)
- TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC)
- Petr Ε paΔek (ISC)
maintained by DNS-OARC π«Ά
https://www.dns-oarc.net/
π BUGS π
got issues? want a feature? (feature requests count too, we're not gatekeeping π)
https://codeberg.org/DNS-OARC/dnsjit/issues
got a question? just need a hand? slide into the inbox:
admin@dns-oarc.net
friendly reminder bestie: this is dnsjit version1.5.1, and the page you just read isdnsjit.lib.base64url(3). take care of her, she's tiny but she slays. πβ¨ππ¦πΈ
mwah, bye!! π
π¦ where this page comes from
- epel 10: dnsjit 1.5.1-2.el10_2 Β· GPL-3.0-or-later
- epel 9: dnsjit 1.5.1-2.el9 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- ubuntu resolute: dnsjit 1.5.1-2 Β· GPL-3.0-or-later
- ubuntu stonking: dnsjit-dev 1.5.1-6 Β· GPL-3.0-or-later
- Copyright (c) 2018-2026 OARC, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms