base64url, base64url_nopad

Defined in header <mgs/base64url.hpp>.

class base64url;
class base64url_nopad;

base64url is a codec implementing the base64url encoding scheme, as defined in RFC4648.

base64url_nopad only differs in padding policy.


Characteristics

Alphabet

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_

Padding

Required by base64url.
None when encoding, optional when decoding by base64url_nopad,
4 byte boundary

Padding character

=

Inherited from base_n::basic_codec

Member types

Name

Description

traits

The codec traits

Member functions

Name

Description

encoded_size [static]

Computes the encoded size given a decoded size

max_decoded_size [static]

Computes the maximum decoded size given an encoded size

Inherited from codecs::basic_codec

Member functions

Name

Description

encode [static]

Encodes input

decode [static]

Decodes input