corda / net.corda.core.crypto / kotlin.ByteArray

Extensions for kotlin.ByteArray

hashAs

fun ByteArray.hashAs(algorithm: String): SecureHash

Compute the algorithm hash for the contents of the ByteArray.

sha256

fun ByteArray.sha256(): SHA256

Compute the SHA-256 hash for the contents of the ByteArray.