Function encode
Source pub fn encode(bytes: &Vec<u8>) -> String
Expand description
Returns a base64 encoded string.
§Arguments
bytes
- A Vec with bytes to be encoded.
§Example
let input_vector: Vec<u8> = String::from("Hello World").into_bytes();
let result_string: String = base64_lib::encode(&input_vector);