Skip to main content

encode_str

Function encode_str 

Source
pub fn encode_str(input: &str) -> String
Expand description

Base64-encode a UTF-8 string.

let b64 = entrouter_universal::encode_str("hello");
assert_eq!(entrouter_universal::decode_str(&b64).unwrap(), "hello");