Function rb64::encode

source ·
pub fn encode(bytes: &[u8]) -> String
Expand description

Encode the given byte array to a Base 64 String

§Example

use rb64::encode;

let enc = encode(b"Hello world!");
assert_eq!(enc, "SGVsbG8gd29ybGQh");