package sodium

  1. Overview
  2. Docs
type storage = Stdlib.Bytes.t
val of_hash : hash -> storage

of_hash h converts h to storage. The result is size bytes long.

val to_hash : storage -> hash

to_hash s converts s to a hash.

val digest : storage -> hash

digest m computes a hash for message m.

OCaml

Innovation. Community. Security.