1
0
mirror of synced 2026-08-05 09:47:05 +00:00

SEC-2122: Change doc to prioritize bcrypt use

This commit is contained in:
Luke Taylor
2013-05-17 18:42:47 +01:00
parent 34893cd53a
commit d6524feb62
5 changed files with 57 additions and 44 deletions
@@ -17,6 +17,9 @@ package org.springframework.security.crypto.password;
/**
* Service interface for encoding passwords.
*
* The preferred implementation is {@code BCryptPasswordEncoder}.
*
* @author Keith Donald
*/
public interface PasswordEncoder {
@@ -28,6 +28,9 @@ import org.springframework.security.crypto.keygen.KeyGenerators;
* random 8-byte random salt value. It uses an additional system-wide secret value to provide additional protection.
* <p>
* The digest algorithm is invoked on the concatenated bytes of the salt, secret and password.
* <p>
* If you are developing a new system, {@link org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder} is
* a better choice both in terms of security and interoperability with other languages.
*
* @author Keith Donald
* @author Luke Taylor