md5Of

fun md5Of(vararg keys: Any, separator: String = "|"): String

Computes an MD5 hash of the given keys joined by separator.

The join is ambiguous: a key holding the separator hashes the same as two keys, so md5Of("a|b", "c") == md5Of("a", "b|c"). Use it only where the keys cannot contain separator, and, as with md5, never for passwords or where an attacker chooses the keys.

Return

the hex-encoded MD5 hash

Parameters

keys

the values to hash

separator

the separator between key values (default "|")