Module Base64


module Base64: sig  end
Base64 codec.

8-bit characters are encoded into 6-bit ones using ASCII characters A-Z, a-z, 0-9, and '+' , '/' (in that order).


exception Invalid_char
This exception is raised when reading an invalid character from a base64 input.
val str_encode : string -> string
Encode a string into Base64.
val str_decode : string -> string
Decode a string encoded into Base64, raise Invalid_char if a character in the input string is not a valid one.
val encode : (char, 'a, 'b) IO.output -> (char, string, 'b) IO.output
Generic base64 encoding over an output.
val decode : (char, 'a) IO.input -> (char, string) IO.input
Generic base64 decoding over an input.