pub const URL_SAFE_NO_PADDING: &Config<'_>;
Expand description

Base64url without padding compliant configuration as specified in RFC 4648

Specifics:

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

Padding Character: None

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_NO_PADDING); // Creates a base64url Compliant b64 without padding of value 0
    println!("{}", config::URL_SAFE_NO_PADDING);
    // Prints:
    // -, _
    println!("{}", b64);
    // Prints:
    // "_"
}