Function base64_lib::decode_with_alphabet
[−]
[src]
pub fn decode_with_alphabet(
base64_string: &String,
alphabet: &String
) -> Vec<u8>
Returns a byte vector containing decoded data.
Arguments
base64_string
- A base64 encoded string.alphabet
- A custom alphabet. Contains 64 unique characters.
Example
let input_string: String = String::from("SGVsbG8gV29ybGQ="); let alphabet: String = String::from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="); let result_vector: Vec<u8> = base64_lib::decode_with_alphabet(&input_string, &alphabet);