hash

fun ByteArray.hash(algorithm: String): ByteArray?

Parameters

algorithm

– the name of the algorithm requested. See the MessageDigest for information about standard algorithm names and supported API levels