pub fn base64_encode(bytes: &[u8]) -> StringExpand description
Encode bytes to a base64 string using the standard alphabet
with trailing = padding (RFC 4648).
ยงExamples
use dynomite::crypto::base64_encode;
assert_eq!(base64_encode(b"hi"), "aGk=");
assert_eq!(base64_encode(b"Hello"), "SGVsbG8=");
assert_eq!(base64_encode(b""), "");