Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod num;

pub use base_x::{decode, encode, Alphabet, DecodeError};

pub const B62: &str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

pub fn e(input: impl AsRef<[u8]>) -> String {
  B62.encode(input.as_ref())
}

pub fn d(input: &str) -> Result<Vec<u8>, DecodeError> {
  B62.decode(input)
}