Remove double salt in Pbkdf2PasswordEncoder

Issue gh-3930
This commit is contained in:
vitaliy_kuzmich 2016-06-16 14:48:54 +03:00 committed by Rob Winch
parent 77a478ba0d
commit 5f658b3ffc
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public class Pbkdf2PasswordEncoder implements PasswordEncoder {
}
private byte[] encodeAndConcatenate(CharSequence rawPassword, byte[] salt) {
return concatenate(salt, encode(rawPassword, salt));
return encode(rawPassword, salt);
}
/**
@ -130,4 +130,4 @@ public class Pbkdf2PasswordEncoder implements PasswordEncoder {
throw new IllegalStateException("Could not create hash", e);
}
}
}
}