getDigestFunction

fun getDigestFunction(algorithm: String, salt: String): (String) -> ByteArray

Create a digest function with the specified algorithm and salt


fun getDigestFunction(algorithm: String, salt: (value: String) -> String): (String) -> ByteArray

Create a digest function with the specified algorithm and salt provider.

Parameters

algorithm

digest algorithm name

salt

a function computing a salt for a particular hash input value