Function decode_base64
Source pub fn decode_base64(input: &str) -> Result<Vec<u8>, CoreError>
Expand description
Decodes a base64-encoded string, trying standard encoding first.
§Arguments
input - The base64-encoded string
§Returns
The decoded bytes, or an error message if decoding fails.