liveBook · Manning

Hash function

As explained in Spring Security in Action, Second Edition

A hashing algorithm deterministically transforms input data into an output from which the original input is intended to be impractical to recover.

A hash function deterministically transforms input data into an output designed to make recovering the original input impractical. In Spring Security, hashing is applied where protected data is stored, especially passwords. section 4.3 section 1.1

Use hashing as part of an explicitly configured security design:

  • Select a suitable hashing implementation through PasswordEncoder when implementing authentication logic. section 4.3
  • Add and configure the required component wherever stored data needs hashing; Spring Security supplies the contract, not the application-specific design. section 1.1
  • Keep hashing distinct from encryption: encryptors support encryption and decryption, while hashing is listed among the data-protection choices. section 4.3 section 1.1

How Spring Security in Action, Second Edition covers it

How deep it goes
Explains the security role and configuration boundary but stops short of comparing individual hashing algorithms or implementation internals.
Examples
Uses password handling and protected data storage as the principal application examples.
What you can do after
Apply it via Spring Security's PasswordEncoder and configure hashing where the application stores protected data.
How it connects
Connects hashing with PasswordEncoder, authentication, data storage, encryption, key generators, and encryptors.

Also explained in

Compare how 16 books explain hash function →

Related concepts

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.