sha256Digest

actual fun sha256Digest(data: ByteArray): ByteArray
expect fun sha256Digest(data: ByteArray): ByteArray

Computes the SHA-256 digest of the given data.

Return

a ByteArray containing the 32-byte SHA-256 digest.

Parameters

data

the input bytes to hash.

actual fun sha256Digest(data: ByteArray): ByteArray