verify

common
fun verify(input: String, expected: ByteArray): Boolean

Verifies an input to match the expected hash with the bcrypt algorithm.

Parameters

input

the input from the user etc.

expected

the expected byte array stored in the database etc.

js
fun verify(input: String, expected: ByteArray): Boolean

Verifies an input to match the expected hash with the bcrypt algorithm.

Parameters

input

the input from the user etc.

expected

the expected byte array stored in the database etc.

fun verify(input: String, expected: ByteArray): Boolean

Parameters

input

the input from the user etc.

expected

the expected byte array stored in the database etc.