hashAsync

suspend fun hashAsync(input: String, cost: Int): ByteArray

Hashes an input asynchronously with the specified cost.

Parameters

input

the input which will be hashed

cost

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