DecodeBase32

Decode a base32-encoded string.

Synopsis

Declared in <util/strencodings.h>

std::optional<std::vector<unsigned char>>
DecodeBase32(std::string_view str);

Return Value

The decoded bytes, or std::nullopt if the input is not valid base32.

Parameters

NameDescription
strThe base32 text to decode.