bcrypt
/
de.nycode.bcrypt
common
js
jvm
Package de.
nycode.
bcrypt
Functions
Functions
hash
Link copied to clipboard
common
fun
hash
(input:
String
, cost:
Int
= 6):
ByteArray
Content copied to clipboard
Hashes an
input
with bcrypt with the specified
cost
.
js
jvm
fun
hash
(input:
String
, cost:
Int
= 6):
ByteArray
Content copied to clipboard
fun
hash
(input:
String
, cost:
Int
= 6):
ByteArray
Content copied to clipboard
hashAsync
Link copied to clipboard
js
suspend fun
hashAsync
(input:
String
, cost:
Int
):
ByteArray
Content copied to clipboard
Hashes an
input
asynchronously with the specified
cost
.
verify
Link copied to clipboard
common
fun
verify
(input:
String
, expected:
ByteArray
):
Boolean
Content copied to clipboard
Verifies an
input
to match the
expected
hash with the bcrypt algorithm.
js
fun
verify
(input:
String
, expected:
ByteArray
):
Boolean
Content copied to clipboard
Verifies an
input
to match the
expected
hash with the bcrypt algorithm.
jvm
fun
verify
(input:
String
, expected:
ByteArray
):
Boolean
Content copied to clipboard
verifyAsync
Link copied to clipboard
js
suspend fun
verifyAsync
(input:
String
, expected:
ByteArray
):
Boolean
Content copied to clipboard
Verifies an
input
asynchronously to match the
expected
hash with the bcrypt algorithm.