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.