Function brane_tsk::tools::decode_base64

source ·
pub fn decode_base64(raw: impl AsRef<str>) -> Result<String, ExecuteError>
Expand description

Decodes the given base64 string to a normal string if it is UTF-8.

§Arguments

  • raw: The encoded Base64 string to decode.

§Returns

The decoded string the raw Base64 text represents.

§Errors

This function errors if the given text was not valid UTF-8.