Function base64::decode

source ·
pub fn decode<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>, DecodeError>
Expand description

Decode base64 using the default engine. Returns a Result containing a Vec<u8>.

Example

 let bytes = base64::decode("aGVsbG8gd29ybGQ=").unwrap();
 println!("{:?}", bytes);