md5

fun String.md5(salt: String = ""): String

Computes the MD5 hash of this String with an optional string salt.

Return

the hex-encoded MD5 hash

Parameters

salt

the salt string (default empty)


Computes the MD5 hash of this String with a byte array salt.

Return

the hex-encoded MD5 hash

Parameters

salt

the salt bytes