SecureHash.Companion.sha256 - corda

corda / net.corda.core.crypto / SecureHash / Companion / sha256

# sha256

`@JvmStatic fun sha256(bytes: ByteArray): SHA256`

Computes the SHA-256 hash value of the ByteArray.

### Parameters

`bytes` - The ByteArray to hash.

`@JvmStatic fun sha256(str: String): SHA256`

Computes the SHA-256 hash of the String's UTF-8 byte contents.

### Parameters

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