package base64

  1. Overview
  2. Docs
Base64 encoding for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

base64-3.5.2.tbz
sha256=b3f5ce301aa72c7032ef90be2332d72ff3962922c00ee2aec6bcade187a2f59b
sha512=82148a1fefec9493aaeac032c8d46b9548369d7fd90a57865e009a32c8a0eef950f0f8dbb52b74bb46880a590a0b49f2daa7ab4857233734aee8e383f5a164ec

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.

Published: 22 Sep 2025

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

License

ISC

Dependencies (2)

  1. dune >= "2.3"
  2. ocaml >= "4.07.0"

Dev Dependencies (4)

  1. alcotest with-test
  2. rresult with-test
  3. bos with-test
  4. fmt with-test & >= "0.8.7"

  1. async_smtp
  2. awa
  3. aws >= "1.2"
  4. aws-s3
  5. awskit-s3
  6. awskit-s3-sim
  7. awsm
  8. azblob
  9. azure-cosmos-db
  10. biocaml
  11. bistro
  12. bonsai >= "v0.16.0"
  13. builder
  14. caldav
  15. capnp-rpc-net
  16. capnp-rpc-unix
  17. carton < "1.0.0"
  18. carton-lwt < "1.0.0"
  19. chatoyant
  20. codex
  21. cohttp >= "2.4.0"
  22. cohttp_async_websocket
  23. colombe < "0.2.0"
  24. conex-mirage-crypto
  25. content_security_policy >= "v0.17.0"
  26. current_git >= "0.7.3"
  27. current_github
  28. current_web
  29. decompress >= "1.1.0"
  30. diffast-core
  31. diffast-misc
  32. dkim
  33. dns < "4.4.1" | >= "6.3.0"
  34. dns-server
  35. dns-tsig
  36. dnssec
  37. dose3 >= "6.1"
  38. dream < "1.0.0~alpha3"
  39. dream-httpaf < "1.0.0~alpha4"
  40. dream-pure
  41. email_message
  42. emile >= "0.4"
  43. eqaf >= "0.7"
  44. extism-manifest
  45. extprot >= "1.7.0"
  46. ezjs_push >= "0.2"
  47. forester >= "4.3.0"
  48. frenetic
  49. git >= "3.2.0"
  50. git-kv >= "0.2.0"
  51. git-mirage
  52. git-unix >= "3.2.0"
  53. graphql-cohttp >= "0.9.0"
  54. guardian < "0.0.5"
  55. h1 >= "1.1.0"
  56. h2 >= "0.5.0"
  57. http-lwt-client
  58. httpun-ws
  59. hugin = "1.0.0~alpha2"
  60. hvsock >= "2.0.0"
  61. irc-client >= "0.7.0"
  62. irky
  63. irky-eio
  64. irmin < "2.7.1"
  65. irmin-indexeddb
  66. jose
  67. jsonschema
  68. jupyter
  69. jws
  70. jwto >= "0.2.0"
  71. kittyimg
  72. ldap >= "2.5.2"
  73. learn-ocaml
  74. learn-ocaml-client
  75. letsencrypt < "2.0.0"
  76. links
  77. liquid_std
  78. melange < "0.3.1" | = "1.0.0"
  79. meldep
  80. memtrace_viewer < "v0.15.0"
  81. miaou-driver-web
  82. monorobot
  83. mrmime
  84. multibase
  85. multipart_form
  86. naboris >= "0.1.3"
  87. ocaml-ai-sdk
  88. ocaml-protoc-plugin >= "6.1.0"
  89. ojs-base
  90. ojs_filetree
  91. opam-client >= "2.1.4"
  92. opium >= "0.19.0"
  93. opium_kernel = "0.17.1"
  94. otoggl
  95. otr
  96. ozulip
  97. pbrt_yojson
  98. pgx_async
  99. pgx_lwt_unix
  100. pgx_unix
  101. piqilib >= "0.6.15"
  102. playwright
  103. plist-xml
  104. plotkicadsch
  105. polymarket
  106. prettym
  107. quill < "1.0.0~alpha3"
  108. repr
  109. rpclib
  110. sail < "0.15"
  111. sail_doc_backend
  112. sail_ocaml_backend
  113. savvy
  114. sendmail >= "0.2.0"
  115. session >= "0.5.0"
  116. sherlodoc
  117. simple_httpd
  118. slipshow
  119. smaws-lib
  120. sodium-fmt
  121. soupault >= "2.3.0"
  122. spoke
  123. utcp
  124. vercel
  125. virtual_dom >= "v0.16.0"
  126. webauthn
  127. websocket >= "2.13"
  128. websocketaf
  129. x509 >= "0.11.2"

Conflicts

None