Hasher

Computes cryptographic hash digests.

Use hash for one-shot hashing, or createHashFunction for incremental (streaming) hashing.

Functions

Link copied to clipboard

Returns a new HashFunction for incremental hashing.

Link copied to clipboard
open suspend fun hash(data: ByteArray): ByteArray

Hashes the given data and returns the resulting digest as a ByteArray.

open suspend fun hash(data: RawSource): ByteString

Hashes the given data read from a RawSource and returns the resulting digest as a ByteString.

open suspend fun hash(data: ByteString): ByteString

Hashes the given data and returns the resulting digest as a ByteString.

Link copied to clipboard

Hashes the given data and returns the resulting digest as a ByteArray.

Hashes the given data read from a RawSource and returns the resulting digest as a ByteString.

Hashes the given data and returns the resulting digest as a ByteString.