hash

common
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.

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

Parameters

input

the input which will be hashed

cost

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

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

Parameters

input

the input which will be hashed

cost

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