kythe.io@v0.0.68-0.20240422202219-7225dbc01741/third_party/ocaml_b64/README.md (about)

     1  Base64 for OCaml
     2  ================
     3  
     4  Base64 is a group of similar binary-to-text encoding schemes that represent
     5  binary data in an ASCII string format by translating it into a radix-64
     6  representation.  It is specified in [RFC 4648][rfc4648].
     7  
     8  See also [documentation][docs].
     9  
    10  [rfc4648]: https://tools.ietf.org/html/rfc4648
    11  [docs]: http://mirage.github.io/ocaml-base64
    12  
    13  ## Example
    14  
    15  Simple encoding and decoding.
    16  
    17  ```shell
    18  utop # #require "base64";;
    19  utop # let enc = B64.encode "OCaml rocks!";;
    20  val enc : string = "T0NhbWwgcm9ja3Mh"
    21  utop # let plain = B64.decode enc;;
    22  val plain : string = "OCaml rocks!"
    23  ```
    24  
    25  ## License
    26  
    27  [ISC](https://www.isc.org/downloads/software-support-policy/isc-license/)