fun hash(bytes: ByteArray): SecureHash
Computes the digest of the ByteArray.
bytes - The ByteArray to hash.
fun hash(str: String): SecureHash
Computes the digest of the String's UTF-8 byte contents.
str - String whose UTF-8 contents will be hashed.