bcrypt / com.toxicbakery.bcrypt / Bcrypt / hash

hash

(common, js, jvm) fun hash(input: String, saltRounds: Int): ByteArray

Given a secret and a number of rounds, hash the input using the platform Bcrypt implementation.

Parameters

input - The secret to be hashed

saltRounds - The computation iterations to be performed hashing the secret