module MultiHash
Overview
TODO Write documentation for Multihash
Defined in:
multihash.crConstant Summary
-
HASH_CODES =
{0 => "identity", 17 => "sha1", 18 => "sha2-256", 19 => "sha2-512"} of Int32 => String
-
HASH_FUNCTIONS =
{} of Int32 => Proc(Bytes, Bytes)
-
IDENTITY =
0
-
SHA1 =
17
-
SHA2_256 =
18
-
SHA2_512 =
19
-
VERSION =
"0.1.0"
Class Method Summary
- .check(io : IO, data)
- .decode(io : IO)
- .digest_identity(data)
- .digest_sha1(data) : Bytes
- .digest_sha2_256(data) : Bytes
- .digest_sha2_512(data) : Bytes
- .digest_sha3(data) : Bytes
- .encode(digest, hash_function)
- .encode_identity(data)
- .encode_sha1(data)
- .encode_sha2_256(data)
- .encode_sha2_512(data)