mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 04:30:42 +02:00
Adjust number of iterations to 12 for BCrypt
This commit is contained in:
parent
7a5b4ca75a
commit
e8a246d980
@ -14,7 +14,7 @@ public class DefaultPasswordEncoderFactories {
|
|||||||
static PasswordEncoder createDelegatingPasswordEncoder() {
|
static PasswordEncoder createDelegatingPasswordEncoder() {
|
||||||
|
|
||||||
final Map<String, PasswordEncoder> encoders = new HashMap<>();
|
final Map<String, PasswordEncoder> encoders = new HashMap<>();
|
||||||
encoders.put(ENCODING_ID, new BCryptPasswordEncoder(16));
|
encoders.put(ENCODING_ID, new BCryptPasswordEncoder(12));
|
||||||
|
|
||||||
DelegatingPasswordEncoder result = new DelegatingPasswordEncoder(ENCODING_ID, encoders);
|
DelegatingPasswordEncoder result = new DelegatingPasswordEncoder(ENCODING_ID, encoders);
|
||||||
result.setDefaultPasswordEncoderForMatches(new LegacyPasswordEncoder());
|
result.setDefaultPasswordEncoderForMatches(new LegacyPasswordEncoder());
|
||||||
|
Loading…
Reference in New Issue
Block a user