fn base_encode(alphabet_s: &str, input: &[u8]) -> Vec<u8>