Password hashing
Password hashing transforms a password into a one-way derived value for secure storage and later verification without retaining the original password.
ASP.NET Core in Action, 3e
A password hash is a one-way derived value stored instead of the plaintext password for later password verification.
- How it is used
- Protects stored user credentials within application authentication and user-management workflows.
- How deep it goes
- Recommends hash-only storage and strong algorithms but does not explain hashing internals or algorithm selection.
- Examples
- Uses ASP.NET Core Identity storing users in a database and applying a strong hashing algorithm as the practical example.
- What you can do after
- Operate/configure ASP.NET Core Identity to store passwords as hashes instead of implementing credential handling manually.
Read how ASP.NET Core in Action, 3e explains password hashing →
Fundamentals of Cybersecurity
Password hashing is the application of a cryptographic hash function to a password before storing it so the original password is not directly retained.
- How it is used
- Protects stored passwords from direct exposure if an attacker obtains the password database.
- How deep it goes
- Explains digest storage, login comparison, and guessing attacks, while deferring fuller cryptographic detail.
- Examples
- Uses a SHA-256 password digest and a table comparing password attacks and defenses.
- What you can do after
- Evaluate/understand why stored digests limit direct exposure but do not prevent password guessing.
Read how Fundamentals of Cybersecurity explains password hashing →
Build Python Web Apps with Streamlit
Password hashing is the process of transforming passwords into one-way cryptographic representations for safer credential storage.
- How it is used
- Protects user credentials in a database-backed signup and authentication flow.
- How deep it goes
- Explains one-way hashing and demonstrates bcrypt storage and comparison, without developing cryptographic mathematics or broader security policy.
- Examples
- Uses a transformed-password illustration, a bcrypt-backed User class, a users-table row, and a Streamlit account form.
- What you can do after
- Apply bcrypt to hash passwords, persist hashes, and authenticate entered passwords against stored values.
Read how Build Python Web Apps with Streamlit explains password hashing →
Real-World Cryptography
The use of a deliberately configured password-processing function to derive values suitable for storing and verifying passwords without retaining the passwords themselves.
- How it is used
- Protects stored credentials during website registration and login by replacing passwords with verifiable digests.
- How deep it goes
- Explains the storage and verification flow, brute-force risk, and residual server compromise, but stops short of implementation detail.
- Examples
- Uses website registration and login, cleartext databases, stolen password databases, digest comparison, and Argon2.
- What you can do after
- Apply it via Argon2 by storing password hashes and comparing hashes during login instead of retaining passwords.
Read how Real-World Cryptography explains password hashing →
Rust Servers, Services, and Apps
Password hashing is the one-way transformation of a password into a value intended for secure storage and later verification.
- How it is used
- Protects stored registration credentials while supporting later password verification.
- How deep it goes
- Explains the one-way hash and salt, then applies Argon2 inside a registration handler without detailing its internals.
- Examples
- Demonstrates tutor registration, password confirmation errors, successful registration, and Rust handler code.
- What you can do after
- Apply it via rust-argon2 when implementing a Rust registration endpoint.
Read how Rust Servers, Services, and Apps explains password hashing →
Just Use Postgres!
A password hash is a one-way derived value representing a password, typically incorporating the salt needed for later verification.
- How it is used
- Stores account passwords safely and verifies login attempts without retaining raw passwords.
- How deep it goes
- Explains random salting, Blowfish hashing, embedded salts, and verification queries, but stops short of broader security administration.
- Examples
- Uses a PostgreSQL accounts table, the ahamilton account, SuperSecret123, and correct-versus-incorrect authentication queries.
- What you can do after
- Operate/configure pgcrypto to store password hashes and authenticate users with SQL.
Also covered in
- Rust Web Development
- Grokking Web Application Security
- Grokking Software ArchitectureIn early access (MEAP)
- Hacking Cryptography
What to know first
- Argon2Argon2 is a memory-hard password-hashing and key-derivation algorithm designed to make password-guessing attacks costly in time and memory.
- bcryptbcrypt is an adaptive password-hashing algorithm based on the Blowfish key schedule with a configurable work factor that makes password guessing computationally expensive.
- brute-force attackA brute-force attack systematically tries numerous possible credentials, keys, inputs, or combinations until one succeeds or the search space is exhausted.
Related concepts
- Argon2includes · Argon2 is a memory-hard password-hashing and key-derivation algorithm designed to make password-guessing attacks costly in time and memory.
- hash functionuses · A hash function is a deterministic function that maps input data to a hash value, typically of fixed size, for uses such as lookup, indexing, comparison, or integrity checking.
- cryptproduced by · crypt is a pgcrypto function that hashes a password with a salt and can reproduce a hash for password verification.
- cryptographic saltused by · A cryptographic salt is an additional, typically random value combined with input before hashing to distinguish identical inputs and make precomputed attacks less effective.
- encryptioncontrasts with · Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- hash valueuses · A hash value is a deterministic, typically fixed-size value produced by applying a hash function to input data, often for lookup, comparison, identification, or integrity checking.
Questions about password hashing
What is password hashing?
Password hashing transforms a password into a one-way derived value for secure storage and later verification without retaining the original password.
Which Manning books explain password hashing?
ASP.NET Core in Action, 3e, Fundamentals of Cybersecurity, Build Python Web Apps with Streamlit, Real-World Cryptography, Rust Servers, Services, and Apps and Just Use Postgres!.
What should I know before learning password hashing?
Manning books that teach password hashing usually introduce user ID, Argon2, bcrypt and brute-force attack first.
What is the difference between password hashing and encryption?
Password hashing transforms a password into a one-way derived value for secure storage and later verification without retaining the original password. Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
What kinds of password hashing are there?
Kinds of password hashing include Argon2.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





