You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kotlin file where import error occurs looks like this:
...
import org.mindrot.jbcrypt.BCrypt
...
fun ...() {
// Hash a password for the first time
val hashed = BCrypt.hashpw(password, BCrypt.gensalt())
// gensalt's log_rounds parameter determines the complexity
// the work factor is 2**log_rounds, and the default is 10
val hashed = BCrypt.hashpw(password, BCrypt.gensalt(12))
// Check that an unencrypted password matches one that has
// previously been hashed
if (BCrypt.checkpw(candidate, hashed))
System.out.println("It matches")
else
System.out.println("It does not match")
}
...
The text was updated successfully, but these errors were encountered:
robert-cronin
changed the title
Unresolved reference mindrot'
'Unresolved reference mindrot' when importing jbcrypt
Mar 9, 2019
Gradle file looks like this:
Kotlin file where import error occurs looks like this:
The text was updated successfully, but these errors were encountered: