Constant data_encoding::BASE64URL

source ·
pub const BASE64URL: Encoding;
Expand description

Padded base64url encoding

This encoding is a static version of:

let mut spec = Specification::new();
spec.symbols.push_str("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
spec.padding = Some('=');
assert_eq!(BASE64URL, spec.encoding().unwrap());

It is conform to RFC4648.