pub fn encode_url_safe<T>(input: T) -> StringExpand description
Encode the input into a base64 string using the URL safe base64 encoding scheme (base64url).
§Arguments
input- The input data to encode, which can be any type that implementsAsRef<[u8]>.
§Returns
A String containing the base64url encoded representation of the input data.
§Examples
let data = b"Hello, world!";
let encoded = base64::encode_url_safe(data);
assert_eq!(encoded, "SGVsbG8sIHdvcmxkIQ");