object Bcrypt
Platform dependent Bcrypt wrapper.
(common, js, jvm)
hash |
Given a secret and a number of rounds, hash the input using the platform Bcrypt implementation. fun hash(input: String, saltRounds: Int): ByteArray |
(common, js, jvm)
verify |
Given a secret, determine if it matches a previously hashed secret. This method will perform hashing of the input secret to determine if it is the same value as a previously hashed secret. fun verify(input: String, expected: ByteArray): Boolean |