package sodium-fmt

  1. Overview
  2. Docs

Module Sodium_fmt.BoxSource

Box defines formatters for types defined in Sodium.Box.

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

public_key formats a public_key in this fashion: (Box.public_key AAAAAA==).

channel_key formats a channel_key in this fashion: (Box.channel_key AAAAAA==).

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

keypair formats a keypair in this fashion: ((Box.secret_key AAAAAA==) (Box.public_key AAAAAA==)).

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

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

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

OCaml

Innovation. Community. Security.