hash

expect fun hash(input: String, cost: Int = 6): ByteArray

Hashes an input with bcrypt with the specified cost.

Parameters

input

the input which will be hashed

cost

the cost used for the bcrypt algorithm. Default is 6.

actual fun hash(input: String, cost: Int = 6): ByteArray
actual fun hash(input: String, cost: Int = 6): ByteArray