base64

AuthorsThomas Gazagnaire, Anil Madhavapeddy and Peter Zotov
LicenseISC
Homepagehttps://github.com/mirage/ocaml-base64
Issue Trackerhttps://github.com/mirage/ocaml-base64/issues
Maintainermirageos-devel@lists.xenproject.org
Dependencies
&alcotest
base-bytes
bos
jbuilder>= 1.0+beta10
rresult
PublishedJun 20, 2017
Source [http] https://github.com/mirage/ocaml-base64/releases/download/v2.2.0/base64-2.2.0.tbz
49f2bc4ae37b832c652277c0b701a02a
StatisticsInstalled 1669 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/base64/base64.2.2.0/opam

Base64 encoding 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