Module base64_decoder

Source
Expand description

The base64_decoder module decodes base64 It is public as we use it in some tests. Decode both standard and URL-safe base64 strings Performs error handling and returns a string Call base64_decoder.crack to use. It returns option and check with result.is_some() to see if it returned okay.

Structsยง

Base64Decoder
The Base64 decoder, call: let base64_decoder = Decoder::<Base64Decoder>::new() to create a new instance And then call: result = base64_decoder.crack(input) to decode a base64 string The struct generated by new() comes from interface.rs