Function base64::encode [−][src]
Expand description
Encode arbitrary octets as base64 using the default engine.
Returns a String
.
Example
extern crate base64;
fn main() {
let b64 = base64::encode(b"hello world");
println!("{}", b64);
}