Skip to main content

PAD

Constant PAD 

Source
pub const PAD: GeneralPurposeConfig;
Expand description

Include padding bytes when encoding, and require that they be present when decoding.

Does not allow trailing bits when decoding.

This is the standard per the base64 RFC, but consider using NO_PAD or NO_PAD_INDIFFERENT instead as padding serves little purpose in practice.