Function base64::encode_config [−][src]
pub fn encode_config<T: AsRef<[u8]>>(input: T, config: Config) -> String
Encode arbitrary octets as base64. Returns a String.
Example
extern crate base64; fn main() { let b64 = base64::encode_config(b"hello world~", base64::STANDARD); println!("{}", b64); let b64_url = base64::encode_config(b"hello internet~", base64::URL_SAFE); println!("{}", b64_url); }