package metadb

  1. Overview
  2. Docs

This is a wrapper for the standard Digest library.

type t

Type of hashes

val hash_file : Path.root -> t

Take the MD5 hash of a file

val to_string : t -> string

Returns string representation of hash, in hexadecimal

val of_string : string -> t

Parse hash from hexadecimal string

val equal : t -> t -> bool

Equality of hashes

val compare : t -> t -> int

Wrapper for Digest.compare

OCaml

Innovation. Community. Security.