SCryptPasswordEncoder is a Spring Security PasswordEncoder implementation that encodes passwords with the scrypt password-hashing function.
SCryptPasswordEncoder is a Spring Security PasswordEncoder implementation that encodes passwords with the scrypt password-hashing function. section 4.1.3
Its practical configuration centers on:
Registration in a DelegatingPasswordEncoder under the scrypt key, allowing hashes with the {scrypt} prefix to select it. section 4.1.4
How Spring Security in Action, Second Edition covers it
How deep it goes
Defines the implementation and its configurable constructor dimensions, but does not detail scrypt’s hashing internals.
Examples
Uses a constructor-configuration figure and a DelegatingPasswordEncoder map containing bcrypt, scrypt, and no-op encoders.
What it assumes
Assumes familiarity with Spring Security’s PasswordEncoder contract and basic password-hashing choices.
What you can do after
Configure it as a PasswordEncoder or register it for {scrypt}-prefixed hashes in a DelegatingPasswordEncoder.
How it connects
Connects PasswordEncoder, DelegatingPasswordEncoder, bcrypt, password prefixes, and scrypt hashing.
scryptuses · scrypt is a memory-hard password-based key-derivation function designed to make password-guessing attacks computationally and memory expensive.
DelegatingPasswordEncoderused by · DelegatingPasswordEncoder is a Spring Security PasswordEncoder implementation that selects another password encoder according to an identifier in the stored password representation.
BCryptPasswordEncoderalternative to · BCryptPasswordEncoder is a Spring Security PasswordEncoder implementation that hashes passwords using the bcrypt password-hashing function.
StandardPasswordEncoderkind of · StandardPasswordEncoder is a deprecated Spring Security password encoder that hashes passwords with SHA-256 and an optional secret.
This explainer was generated by Manning's knowledge graph from the text of Spring Security in Action, Second Edition. The section links point to the parts of the book it draws on.