module

MIME::Base64

Base64 encoder/decoder following RFC2045

Constants

ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
CHUNK_SIZE = 8192
LINE_LENGTH = 76
PAD_CHAR = '='

Class methods

decode(input : IO, output : IO) : Nil

Decode Base64 data from input IO to output IO with streaming

Source
decode(data : String) : Bytes

Decode Base64 string to binary data

Source
encode(input : IO, output : IO) : Nil

Encode data from input IO to output IO with streaming

Source
encode(data : Bytes | String) : String

Encode binary data to Base64 string with proper line folding

Source