newStringSalt

fun newStringSalt(len: Int = 16): String

Generates a cryptographically secure random string for use as a salt.

Return

a random alphanumeric string

Parameters

len

the length of the salt string (default 16)