Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirage/ocaml-base64
Base64 encoding and decoding in OCaml
https://github.com/mirage/ocaml-base64
Last synced: about 2 months ago
JSON representation
Base64 encoding and decoding in OCaml
- Host: GitHub
- URL: https://github.com/mirage/ocaml-base64
- Owner: mirage
- License: isc
- Created: 2014-08-03T11:11:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T09:37:32.000Z (over 1 year ago)
- Last Synced: 2024-06-19T18:11:52.951Z (3 months ago)
- Language: OCaml
- Size: 592 KB
- Stars: 43
- Watchers: 12
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-list - ocaml-base64
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][rfc4648].See also [documentation][docs].
[rfc4648]: https://tools.ietf.org/html/rfc4648
[docs]: http://mirage.github.io/ocaml-base64/base64/## Example
Simple encoding and decoding.
```shell
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](https://www.isc.org/downloads/software-support-policy/isc-license/)