rust convert binary data into ASCII text using Base64 RFC 4648. code example
Example: rust convert binary data into ASCII text using Base64 RFC 4648.
// encode
let b64txt = base64::encode(data);
// decode
let data = base64::decode(b64txt).unwrap();