package sodium-fmt

  1. Overview
  2. Docs

Secret_box defines formatters for types defined in Sodium.Secret_box.

val secret_key : Sodium.Secret_box.secret_key Fmt.t

secret_key formats a secret_key in this fashion: (Secret_box.secret_key AAAAAA==).

val nonce : Sodium.Secret_box.nonce Fmt.t

nonce formats a nonce in this fashion: (Secret_box.nonce AAAAAA==).

module type S = sig ... end
module Bytes : S with type storage = bytes

Bytes offers versions of each of the above formatters, which get their value from a bytes value.

module Bigbytes : S with type storage = Sodium.bigbytes

Bigbytes offers versions of each of the above formatters, which get their value from a Sodium.bigbytes value.

OCaml

Innovation. Community. Security.