com.github.rs3vans.krypto / hashPassword

hashPassword

fun hashPassword(password: String, salt: Bytes = generateRandomBytes()): String

Securely hash a password using the given salt (or a random one), returning a Base64 encoded String with an embedded salt.