Module base64

Overview

Correct and fast base64 encoding based on the base64 crate.

Examples

let encoded = base64::encode(b"\xFF\xEC\x20\x55\0");
assert_eq!(base64::decode(encoded), Ok(b"\xFF\xEC\x20\x55\0"));

Structs

DecodeError

Errors that can occur while decoding.

Functions

decode

Decode a base64 String into data

encode

Encode a data into a base64 String.