Reduced Bcrypt cost to 6 as with 12 on my old phone decryption took 2,5 seconds

This commit is contained in:
dankito 2021-11-06 16:16:35 +01:00
parent 0b73e6387e
commit eb4d2333c7
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ open class AuthenticationService(
settings.salt = encodeToBase64(salt) settings.salt = encodeToBase64(salt)
if (newUserPassword != null) { if (newUserPassword != null) {
settings.hashedUserPassword = BCrypt.withDefaults().hashToString(12, newUserPassword) settings.hashedUserPassword = BCrypt.withDefaults().hashToString(6, newUserPassword)
newDatabasePassword = concatPasswords(newUserPassword, newDefaultPassword) newDatabasePassword = concatPasswords(newUserPassword, newDefaultPassword)
} }
} }