KotlinCryptoDigest

value class KotlinCryptoDigest(val backend: Digest) : Digest

A factory that creates Path instances by hashing their content with a specific backend.

Constructors

Link copied to clipboard
constructor(backend: Digest)

Properties

Link copied to clipboard
val backend: Digest

Functions

Link copied to clipboard
open override fun digest(): ByteArray

Returns the digest of the data passed to update.

Link copied to clipboard
open override fun digestToString(): String

Returns the digest as a string.

Link copied to clipboard
open override fun update(data: ByteArray)

Updates the digest with the given data.