Compute the algorithm hash for the contents of the ByteArray.
fun ByteArray.hashAs(algorithm: String): SecureHash
Compute the SHA-256 hash for the contents of the ByteArray.
fun ByteArray.sha256(): SHA256