BOTAN(3em)

πŸ“¦ version 1.2.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

Bestie, welcome to BOTAN(3em) β€” the page for botan, aka the Botan bindings for Emilua. That’s the whole name vibe: botan β†’ Botan bindings for Emilua. Periodt.


✨ SYNOPSIS ✨

Okay so first you load the module, then you get two base64_decode overloads. Here they are, exactly as they live:

local botan = require "botan"

botan.base64_decode(out_buffer: byte_span, input: byte_span|string, ignore_ws: boolean = true) -> byte_span (1)
botan.base64_decode(input: byte_span|string, ignore_ws: boolean = true) -> secure_byte_span (2)

The overloads are numbered (1) and (2) up there β€” that’s not me being extra, that’s literally how the page labels them. 🫢


🌸 DESCRIPTION 🌸

This is the part where botan does base64 decoding. Slay. πŸ’…

If you provide an out_buffer, it should have at least base64_decode_max_output(input) bytes. That’s the size check, bestie β€” don’t skip it.

Lowkey important: the out_buffer rule only kicks in if provided, and the bar is at least base64_decode_max_output(input) bytes. No cap. ✨

Cute sign-off time: this BOTAN(3em) page comes from Emilua 0.12.1 and is dated 1980-01-01. Byeee, go decode something iconic πŸŽ€πŸ’–

πŸ“¦ where this page comes from