Encodes a buffer into a Base32 string.
@eryx/encoding/base32 Module
Base32 encoding utilities.
Encodes and decodes binary buffer data using the standard Base32
alphabet (RFC 4648 § 6: A–Z, 2–7). Padding characters are not
emitted.
local base32 = require("@eryx/encoding/base32")
local encoded = base32.encode(buffer.fromstring("Hello"))
print(encoded) -- "JBSWY3DP"
Summary
Functions
API Reference
Functions
base32.encode
Parameters
buf: buffer
The binary data to encode.
Returns
The Base32-encoded string.