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