verify

suspend fun verify(input: String, hash: ByteArray): Outcome<Boolean>

Verifies an input string against a provided hash and salt using the Argon2 algorithm.

Return

true if the input matches the hash, false otherwise.

Parameters

input

The input string to verify (e.g., a password).

hash

The expected hash to compare against.

salt

The salt used to generate the hash.