pub fn encode(input: impl AsRef<[u8]>) -> String
Expand description
Encode a string to base45
The function takes a string containing only characters in in the range U+0000 to U+00FF.
let encoded = base45::encode("Hello!!");
assert_eq!(encoded, "%69 VD92EX0");