package base64

  1. Overview
  2. Docs
Base64 encoding for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

base64-v3.3.0.tbz
sha256=3ae91334f029ccd96690b598010f94e55811095d14a37d52f1724e5eca0f35cc
sha512=818103de0ac03b9a04f5aafc119341522bf69e57dfbd038b321f92ab8cbf7fc7084ca3012086baece12da94d4d5448eb927f70b741025a13d49e93ca6ea27d41

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 = Base64.encode_exn "OCaml rocks!";;
val enc : string = "T0NhbWwgcm9ja3Mh"
utop # let plain = Base64.decode_exn enc;;
val plain : string = "OCaml rocks!"

License

ISC

OCaml

Innovation. Community. Security.