DefaultSha256MessageDigestHashFunction

The default SHA-256 hash function using the MessageDigest implementation. Each hash request will generate a new instance of the MessageDigest object, as these implementations are not thread safe. These MessageDigest instances however are relatively cheap to construct.

Functions

Link copied to clipboard
open override fun hash(input: ByteArray): ByteArray

The hash function takes an input byte array and turns it into a valid SHA-256 hash.