Skip to main content

base64_decode

Function base64_decode 

Source
pub fn base64_decode(input: &str) -> Option<Vec<u8>>
Expand description

Decodes a standard RFC 4648 base64 string (used by HTTP Basic authentication).

§Arguments

  • &str - Standard base64-encoded string.

§Returns

  • Option<Vec<u8>> - Decoded bytes, or None if malformed.