Base64 URL
Base64 encode, decode, escape and unescape for URL applications.
Examples
Encode data to a Base64-URL string.
assert_eq!;
Decode a Base64-URL string to data.
assert_eq!;
Escape a Base64 string to a Base64-URL string. The conversion is not concerning with Base64 decoding. You need to make sure the input string is a correct Base64 string by yourself.
assert_eq!;
Unescape a Base64-URL string to a Base64 string. The conversion is not concerning with Base64 decoding. You need to make sure the input string is a correct Base64-URL string by yourself.
assert_eq!;
Besides, you can also use other encode_*, decode_*, escape_*, unescape_* associated functions to deal with more specific cases. For example,
let hash = &;
let mut url = Stringfrom;
assert_eq!;
assert_eq!;
Std
This crate is no_std compatible by default and only requires alloc.
Enable the std feature to pass std support through to the base64 dependency.
[]
= "*"
= ["std"]
Crates.io
https://crates.io/crates/base64-url