Function encode

Source
pub fn encode(string: &str) -> String
Expand description

Base64 encode string

ยงExample

let string = "Hi!";
let result = base64_string::encode(string);
assert_eq!(result, String::from("SGkh"));