Argon2Password

object Argon2Password

Functions

Link copied to clipboard
fun encode(raw: String): String

Encode the raw password using Argon2id with default parameters.

Link copied to clipboard
fun matches(raw: String, encoded: String): Boolean

Verify that the encoded password matches the raw password when it too is encoded.

Sources

Link copied to clipboard