pub fn encode_b64(data: impl AsRef<[u8]>) -> String
Encode the given slice in url-safe base64 with no padding.