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

Conflicts

None