Digest

Produces a hash from the chunks of input. Feed the input with append() and produce a final hash from the concatenation of the input with final().

class ref Digest

Constructors

md5

new ref md5()
: Digest ref^

Returns


ripemd160

new ref ripemd160()
: Digest ref^

Returns


sha1

new ref sha1()
: Digest ref^

Returns


sha224

new ref sha224()
: Digest ref^

Returns


sha256

new ref sha256()
: Digest ref^

Returns


sha384

new ref sha384()
: Digest ref^

Returns


sha512

new ref sha512()
: Digest ref^

Returns


Public Functions

append

Update the Digest object with input. Throw an error if final() has been called.

fun ref append(
  input: (String val | Array[U8 val] val))
: None val ?

Parameters

Returns


final

Return the digest of the strings passed to the append() method.

fun ref final()
: Array[U8 val] val

Returns


digest_size

Return the size of the message digest in bytes.

fun box digest_size()
: USize val

Returns