package opam-core

  1. Overview
  2. Docs

Module OpamSHASource

Pure OCaml implementation of SHA256/512 hashing functions. The hash is returned as an hex string.

Sourceval sha256_file : string -> string
Sourceval sha512_file : string -> string
Sourceval hash_file : [< `SHA256 | `SHA512 ] -> string -> string
Sourceval sha256_bytes : Bytes.t -> string
Sourceval sha512_bytes : Bytes.t -> string
Sourceval hash_bytes : [< `SHA256 | `SHA512 ] -> Bytes.t -> string

For compat, use the above

Sourceval sha256 : string -> string
Sourceval sha512 : string -> string
Sourceval hash : [< `SHA256 | `SHA512 ] -> string -> string
OCaml

Innovation. Community. Security.