Reduced Bcrypt cost to 6 as with 12 on my old phone decryption took 2,5 seconds
This commit is contained in:
parent
0b73e6387e
commit
eb4d2333c7
|
@ -199,7 +199,7 @@ open class AuthenticationService(
|
|||
settings.salt = encodeToBase64(salt)
|
||||
|
||||
if (newUserPassword != null) {
|
||||
settings.hashedUserPassword = BCrypt.withDefaults().hashToString(12, newUserPassword)
|
||||
settings.hashedUserPassword = BCrypt.withDefaults().hashToString(6, newUserPassword)
|
||||
newDatabasePassword = concatPasswords(newUserPassword, newDefaultPassword)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue