base64_decode

Function base64_decode 

Source
pub fn base64_decode(text: &str) -> Result<String, String>
Expand description

The inverse of base64_encode, tolerant of padding and of the standard alphabet.

+ and / decode as - and _ do: a program reading a value somebody else encoded should not have to know which of the two alphabets they chose, and the two do not overlap, so accepting both is unambiguous rather than lenient.