package base64

  1. Overview
  2. Docs
Base64 encoding for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

base64-2.2.0.tbz
sha256=7dd9ad996ae22ef343c68a371de22de373e24dcadba6d12ffbc6bdd9a50fc94f
md5=49f2bc4ae37b832c652277c0b701a02a

Description

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

Published: 20 Jun 2017

README

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

Dependencies (3)

  1. jbuilder >= "1.0+beta10"
  2. base-bytes
  3. ocaml

Dev Dependencies (3)

  1. alcotest with-test & >= "0.4.0"
  2. rresult with-test
  3. bos with-test

Conflicts

None

OCaml

Innovation. Community. Security.