package odig
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=1658390e48b7698522bf539ee038476968c27b75cd90277dfeffb21258940fc2a1e24a12403aba24f7ad2ce33dc920d3149c7d3cfb74c5c3e961b1e96639e9de
doc/odig.support/Odig_support/Digest/MD5/index.html
Module Digest.MD5
MD5 is the MD5 hash function. It produces 128-bit (16-byte) digests and is not cryptographically secure at all. It should be used only for compatibility with earlier designs that mandate the use of MD5.
Compare two digests, with the same specification as Stdlib.compare.
val string : string -> tReturn the digest of the given string.
val bytes : bytes -> tReturn the digest of the given byte sequence.
val substring : string -> int -> int -> tsubstring s ofs len returns the digest of the substring of s starting at index ofs and containing len characters.
val subbytes : bytes -> int -> int -> tsubbytes s ofs len returns the digest of the subsequence of s starting at index ofs and containing len bytes.
val channel : in_channel -> int -> tRead characters from the channel and return their digest. See Digest.channel for the full specification.
val file : string -> tReturn the digest of the file whose name is given.
val output : out_channel -> t -> unitWrite a digest on the given output channel.
val input : in_channel -> tRead a digest from the given input channel.
val to_hex : t -> stringReturn the printable hexadecimal representation of the given digest.
val of_hex : string -> tConvert a hexadecimal representation back into the corresponding digest.