Digest.BLAKE512(3)
β¨ Digest.BLAKE512(3) β¨
okay so bestie, welcome to the Digest.BLAKE512 glow-up page π
this is the OCaml library corner of the universe and we're about to get into the good hash stuff. buckle up π
π NAME π
Digest.BLAKE512 β BLAKE512 is the BLAKE2b hash function producing 512-bit (64-byte) digests. no cap, that's literally the whole vibe. π₯
π¦ Module π¦
Module Digest.BLAKE512
πΈ Documentation πΈ
Module BLAKE512 : S
okay so here's the tea β β BLAKE512 is the BLAKE2b hash function producing 512-bit (64-byte) digests. it is cryptographically secure, and the digests are large enough to thwart brute-force attacks. like, the security is genuinely giving main character energy ππ
Since 5.2
β type t = string
The type of digests. that's it, that's the type π«Ά
β val hash_length : int
The length of digests, in bytes. iconic little number, fr fr.
β val compare : t -> t -> int
Compare two digests, with the same specification as compare.
β val equal : t -> t -> bool
Test two digests for equality. are they the same? vibe check time β¨
β val string : string -> t
Return the digest of the given string.
β val bytes : bytes -> t
Return the digest of the given byte sequence.
β val substring : string -> int -> int -> t
substring s ofs len returns the digest of the substring of s starting at index ofs and containing len characters. slice it, dice it, hash it π
β val subbytes : bytes -> int -> int -> t
subbytes s ofs len returns the digest of the subsequence of s starting at index ofs and containing len bytes.
β val channel : in_channel -> int -> t
Read characters from the channel and return their digest. See Digest.channel for the full specification. iykyk π
β val file : string -> t
Return the digest of the file whose name is given. yes, just hand it the filename and it goes to work π
β val output : out_channel -> t -> unit
Write a digest on the given output channel.
β val input : in_channel -> t
Read a digest from the given input channel.
β val to_hex : t -> string
Return the printable hexadecimal representation of the given digest.
π¨ RaisesInvalid_argumentif the length of the argument is nothash_length. like, don't try it π
β val of_hex : string -> t
Convert a hexadecimal representation back into the corresponding digest.
π¨ RaisesInvalid_argumentif the length of the argument is not2 * hash_length, or if the argument contains non-hexadecimal characters. so keep it clean, bestie π
and that's the page!! π§ written with love by OCamldoc, version dated 2026-06-22 β catch you on the next manpage, mwah πππ
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms