Base64 encoding and decoding in OCaml
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bench Update tests, fuzzers and benchmarks with the new names Jan 20, 2019
fuzz Update tests, fuzzers and benchmarks with the new names Jan 20, 2019
src Add `Base64.encode_string` that doesn't raise or return an error. Feb 2, 2019
test Update tests, fuzzers and benchmarks with the new names Jan 20, 2019
.gitignore Switch to jbuilder Jun 9, 2017
.ocp-indent port to topkg Oct 2, 2016
.travis-ci.sh test with OCaml 4.02 as well, and switch to OPAM 1.2 Dec 17, 2014
.travis.yml update travis Nov 23, 2018
CHANGES.md release 3.1.0 Feb 3, 2019
LICENSE.md port to topkg Oct 2, 2016
Makefile fix Makefile for dune Nov 23, 2018
README.md
base64.opam
dune-project Update OPAM file and dunify project Nov 21, 2018

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

License

ISC