Expand description
Encode arbitrary octets as base64.
Returns a String.
Convenience for encode_config(input, base64::STANDARD);
.
Example
extern crate base64;
fn main() {
let b64 = base64::encode(b"hello world");
println!("{}", b64);
}
Encode arbitrary octets as base64.
Returns a String.
Convenience for encode_config(input, base64::STANDARD);
.
extern crate base64;
fn main() {
let b64 = base64::encode(b"hello world");
println!("{}", b64);
}