dnsjit.lib.base64url(3)

πŸ“¦
version 1.5.1 Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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 version 1.5.1, and the page you just read is dnsjit.lib.base64url(3). take care of her, she's tiny but she slays. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

mwah, bye!! πŸ’