package base64

  1. Overview
  2. Docs
For OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

base64-2.1.2.tbz
sha256=d8d1a0bb15a81d1ccfb2faa37275bc43f8ac0893cdd7f984c83357c8b8d285dc
md5=acef73296915b4f8052868f182862dc8

README.md.html

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

OCaml

Innovation. Community. Security.