package sodium-fmt

  1. Overview
  2. Docs

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

type storage = Sodium.bigbytes
val salt : storage Fmt.t

salt formats a salt in this fashion: (Password_hash.salt AAAAAA==). If the storage value is not Sodium.Password_hash.salt_size bytes long, it will be formatted as (Password_hash.salt <size mismatch>).

OCaml

Innovation. Community. Security.