
commonTest.BCryptTest.kt Maven / Gradle / Ivy
package de.nycode.bcrypt
import kotlin.js.JsName
import kotlin.test.Test
import kotlin.test.assertTrue
/**
* Root object for using the BCrypt multiplatform library.
*/
object BCryptTest {
@Test
@JsName("simple_hash")
fun `Simple Hash`() {
val input = "hello"
val hash = hash(input)
assertTrue(verify("hello", hash), "Hashes are not matching")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy