hash

fun String.hash(algorithm: String): String

Hashes this String using algorithm.

Parameters

algorithm

the algorithm according to the Java spec

See also


fun ByteArray.hash(algorithm: String): String

Hashes this ByteArray using algorithm.

Parameters

algorithm

the algorithm according to the Java spec

See also