base64 0.4.0

encodes and decodes base64 as bytes or utf8

Crate base64 [] [src]

Structs

Config

Contains configuration parameters for base64 encoding

Enums

Base64Error
CharacterSet

Available encoding character sets

Statics

STANDARD
URL_SAFE
URL_SAFE_NO_PAD

Functions

decode

Decode from string reference as octets. Returns a Result containing a Vec. Convenience decode_config(input, base64::STANDARD);.

decode_config

Decode from string reference as octets. Returns a Result containing a Vec.

decode_config_buf

Decode from string reference as octets. Writes into the supplied buffer to avoid allocation. Returns a Result containing an empty tuple, aka ().

decode_ws

DEPRECATED -- will be replaced by decode_config(input, Base64Mode::MIME);

encode

Encode arbitrary octets as base64. Returns a String. Convenience for encode_config(input, base64::STANDARD);.

encode_config

Encode arbitrary octets as base64. Returns a String.

encode_config_buf

Encode arbitrary octets as base64. Writes into the supplied buffer to avoid allocations.