base64ct/alphabet/
crypt.rs
use super::{Alphabet, DecodeStep, EncodeStep};
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct Base64Crypt;
impl Alphabet for Base64Crypt {
const BASE: u8 = b'.';
const DECODER: &'static [DecodeStep] = &[
DecodeStep::Range(b'.'..=b'9', -45),
DecodeStep::Range(b'A'..=b'Z', -52),
DecodeStep::Range(b'a'..=b'z', -58),
];
const ENCODER: &'static [EncodeStep] =
&[EncodeStep::Apply(b'9', 7), EncodeStep::Apply(b'Z', 6)];
const PADDED: bool = false;
type Unpadded = Self;
}