tree: 2d632f5fcef5458379bf2df7dff01c876bd89d12 [path history] [tgz]
  1. README.google
  2. README.md
  3. b64.ml
  4. b64.mli
third_party/ocaml_b64/README.md

Base64 for OCaml

Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. It is specified in RFC 4648.

See also documentation.

Example

Simple encoding and decoding.

utop # #require "base64";;
utop # let enc = B64.encode "OCaml rocks!";;
val enc : string = "T0NhbWwgcm9ja3Mh"
utop # let plain = B64.decode enc;;
val plain : string = "OCaml rocks!"

License

ISC