Function base64::encode

Overview
fn encode(bytes: Bytes) -> String

Encode a data into a base64 String.

Examples

assert_eq!(base64::encode(b"\xFF\xEC\x20\x55\0"), "/+wgVQA=");