Google

Module Cryptokit.Base64


module Base64: sig  end
The Base64 module supports the encoding and decoding of binary data in base 64 format, using only alphanumeric characters that can safely be transmitted over e-mail or in URLs.

val encode_multiline : unit -> Cryptokit.transform
Return a transform that performs base 64 encoding. The output is divided in lines of length 76 characters, and final = characters are used to pad the output, as specified in the MIME standard. The output is approximately 4/3 longer than the input.
val encode_compact : unit -> Cryptokit.transform
Same as Cryptokit.Base64.encode_multiline, but the output is not split into lines, and no final padding is added. This is adequate for encoding short strings for transmission as part of URLs, for instance.
val decode : unit -> Cryptokit.transform
Return a transform that performs base 64 decoding. The input must consist of valid base 64 characters; blanks are ignored. Raise Error Bad_encoding if invalid base 64 characters are encountered in the input.