/bcrypt

Kotlin Multiplatform Library for BCrypt on JVM and JS.

Primary LanguageKotlinMIT LicenseMIT

bcrypt

Maven Central Gradle CI

Kotlin multiplatform library for working with BCrypt.

(Updated version of bcrypt-mpp by @ToxicBakery)

This library is available via maven central.

Gradle

implementation("de.nycode:bcrypt:2.2.0")

Maven

<dependency>
  <groupId>de.nycode</groupId>
  <artifactId>bcrypt</artifactId>
  <version>2.2.0</version>
  <type>pom</type>
</dependency>

Usage

Hash

val hash = hash("Hello pls hash me")

Verify

if (verify("Hello pls hash me", hash)) {
    println("Valid")
} else {
    println("Invalid")
}