-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: cryptoAn issue in spring-security-cryptoAn issue in spring-security-cryptostatus: duplicateA duplicate of another issueA duplicate of another issue
Description
Summary
The Pbkdf2PasswordEncoder class always generates an 8-byte salt. NIST Special Publication 800-132 section 5.1 calls for at least a 16-byte salt. Having a constructor parameter to either replace the BytesKeyGenerator or choose the key length of the generated BytesKeyGenerator would be very helpful.
Version
Spring 4.1 and above
Sample
String secret = "secret"
int iterations = 200000;
int hashWidth = 256;
int saltLength = 16;
new Pbkdf2PasswordEncoder(secret, iterations, hashWidth, saltLength);
new Pbkdf2PasswordEncoder(secret, saltLength);
artemmensk and rikles
Metadata
Metadata
Assignees
Labels
in: cryptoAn issue in spring-security-cryptoAn issue in spring-security-cryptostatus: duplicateA duplicate of another issueA duplicate of another issue