Constant lb64::config::URL_SAFE_PADDING

source ·
pub const URL_SAFE_PADDING: &Config<'_>;
Expand description

Base64url with padding compliant configuration as specified in RFC 4648

Specifics:

Character Set: [A-Z], [a-z], [0-9], -, _

Padding Character: =

Maximum Line Length: No maximum

Example:

extern crate lb64;
use lb64::{config, Base64};

fn main() {
    let b64 = Base64::new_encode_unsigned(&63, config::URL_SAFE_PADDING); // Creates a base64url Compliant b64 of value 63
    println!("{}", config::URL_SAFE_PADDING);
    // Prints:
    // -, _, =
    println!("{}", b64);
    // Prints:
    // "_"
}