EncodeBase32

Base32 encode. If pad is true, then the output will be padded with '=' so that its length is a multiple of 8.

Synopses

Declared in <util/strencodings.h>

Base32 encode. If pad is true, then the output will be padded with '=' so that its length is a multiple of 8.

std::string
EncodeBase32(
    std::string_view str,
    bool pad = true);
» more...

Base32 encode. If pad is true, then the output will be padded with '=' so that its length is a multiple of 8.

std::string
EncodeBase32(
    std::span<unsigned char const> input,
    bool pad = true);
» more...

Return Value

  • The base32 encoding of str.
  • The base32 encoding of input.

Parameters

NameDescription
strThe text to encode.
padWhether to pad the output with '=' to a multiple of 8 characters.
inputThe bytes to encode.