fun getDigestFunction(algorithm: String, salt: String): (String) -> ByteArrayCreate 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.
algorithm - digest algorithm name
salt - a function computing a salt for a particular hash input value