Skip to main content

base64_decode

Function base64_decode 

Source
pub fn base64_decode(s: &[u8], strict: bool) -> Option<Vec<u8>>
Expand description

PHP base64_decode($string, $strict). Non-strict skips every byte that is not in the alphabet (and decodes data after = padding); strict skips only \t \n \r and spaces and fails (None, PHP’s false) on anything else, on data after padding, on a lone final character or on bad padding.