Kotlin multiplatform library for working with BCrypt.
(Updated version of bcrypt-mpp by @ToxicBakery)
This library is available via maven central.
implementation("de.nycode:bcrypt:2.2.0")
<dependency>
<groupId>de.nycode</groupId>
<artifactId>bcrypt</artifactId>
<version>2.2.0</version>
<type>pom</type>
</dependency>
val hash = hash("Hello pls hash me")
if (verify("Hello pls hash me", hash)) {
println("Valid")
} else {
println("Invalid")
}