fun ByteArray.hashAs(algorithm: String): SecureHash
Compute the algorithm hash for the contents of the ByteArray.