corda / net.corda.core.crypto / DigestService / hash

hash

fun hash(bytes: ByteArray): SecureHash

Computes the digest of the ByteArray.

Parameters

bytes - The ByteArray to hash.

fun hash(str: String): SecureHash

Computes the digest of the String's UTF-8 byte contents.

Parameters

str - String whose UTF-8 contents will be hashed.