High School AdvancedA14.3Cryptography and Key Management Concepts
Lesson A14.3
Hashing, Salting, and Integrity Concepts
Hashing is not a weaker form of encryption. It solves a different problem. A good integrity design asks what object should remain unchanged, who provides the trusted reference, when verification happens, and what the system does when evidence does not match.
Password-storage discussion remains conceptual and defensive. This lesson does not provide hash cracking, password guessing, credential attacks, or instructions for defeating stored verifiers.
High School Advanced • A14: Cryptography and Key Management Concepts • Lesson 3 of 10
30% complete
Readiness Check
A14.3 Entry Readiness
0/4 ready
Professional Hook
A Digest Is Useful Only When the Architecture Knows What It Is Comparing
Computing a hash is easy. Building a trustworthy integrity process is harder. A release pipeline needs a trusted expected value, version context, an accountable owner, a decision point, and a response when the digest does not match. Without those pieces, a hash may exist without creating meaningful assurance.
Integrity is a relationship between an object, a trusted reference, a verification event, and a decision.
Learning Objectives
Five Capabilities for This Lesson
1
Explain hashing as a one-way transformation used for integrity and comparison purposes, and distinguish it clearly from reversible encryption.
2
Explain salting conceptually as a way to make stored password-verifier values less reusable across accounts, without teaching cracking or attack procedures.
3
Evaluate fictional integrity designs for files, software artifacts, configuration packages, records, exports, and stored password verifiers using purpose, owner, evidence, lifecycle, and trust context.
4
Identify limitations such as assuming a hash proves authorship, treating identical digests as identity proof, relying on stale integrity evidence, or confusing secrecy with integrity.
5
Build an Integrity Protection Review that becomes the third artifact in the A14 Key-Management Design Recommendation.
Core Concepts
Hashing, Encryption, Salting, and Signatures Are Not Interchangeable
Hashing
Produces a fixed-size digest from input data using a one-way transformation.
Useful for
Integrity comparison, content identification within a trusted workflow, password-verifier construction, artifact checks, evidence correlation.
Not for
Recovering the original data or providing confidentiality.
Architecture question
What decision will this digest support, and who provides the trusted reference value?
Encryption
Transforms readable data into protected data that authorized parties can reverse with the appropriate key relationship.
Useful for
Confidentiality for stored or transmitted information.
Not for
Proving authorship by itself or replacing access control.
Architecture question
Who is authorized to decrypt, and how is the key lifecycle governed?
Salting
Adds unique, non-secret random data to a password-verifier process so identical passwords do not produce identical stored verifier values across accounts.
Useful for
Reducing reuse of precomputed comparisons and preventing identical password choices from producing identical stored outputs.
Not for
Replacing a strong password-hashing design, authentication controls, or account protection.
Architecture question
Does each stored verifier have an appropriate unique salt and a governed password-storage method?
Digital signature
Provides integrity plus signer-authenticity evidence using an asymmetric signing relationship.
Why it matters: An attacker-independent reference is necessary for trustworthy integrity conclusions.
How fresh is the evidence?
Examples: Current artifact digest, stale package manifest, outdated inventory, expired review.
Why it matters: Integrity evidence that no longer matches the current object or version can create false confidence.
Password Storage
Password Verification Without Recoverable Password Storage
Password storage is one of the most important places to understand the difference between encryption and hashing. A verifier should allow the system to check a login without storing a plaintext or routinely recoverable copy of the user's password.
Stored verifier, not reversible password storage
A strong password-storage architecture does not need to recover the original password. It stores a verifier derived through a one-way process.
Design note: The architecture should be able to verify a legitimate login without keeping a recoverable copy of the password.
Unique salt per verifier
A unique salt helps ensure that two accounts using the same password do not produce the same stored verifier value.
Design note: The salt is not a secret; its value is in making each verification input unique.
Purpose-built password hashing
Password verification should use a dedicated password-hashing design rather than a general fast digest intended for file integrity.
Design note: The lesson stays conceptual and does not provide cracking, benchmarking, or attack instructions.
No plaintext password logging
Authentication logs should record safe metadata about the decision, not the user's secret password.
Design note: Monitoring can show account, time, policy outcome, and source health without recording credentials.
Reset instead of recovery
If a user forgets a password, a secure architecture generally resets the credential through a governed identity process rather than recovering the original secret.
Design note: Recovery workflows should preserve identity assurance and accountability.
Lifecycle and migration
Password-verifier formats may need to evolve as policy and standards change.
Design note: The architecture should support safe migration without exposing user passwords.
Safety boundary
This lesson explains defensive password-storage architecture only. It does not provide password cracking, hash cracking, guessing strategies, wordlists, attack tooling, or methods for obtaining credentials.
Evidence Types
Different Integrity Evidence Supports Different Claims
Digest comparison
Strength: Useful when a trusted reference digest is available and the comparison point is well controlled.
Limitation: A matching digest supports content consistency but does not prove who created the content.
Signed digest / signature
Strength: Adds signer-authenticity evidence to integrity when the signing key and trust chain are governed.
Limitation: Trust still depends on signer ownership, key lifecycle, and verifier trust.
Versioned manifest
Strength: Connects expected artifact names, versions, digests, and release state.
Limitation: The manifest itself must come from a trusted source.
Trusted repository metadata
Strength: Can support comparison between expected and observed package content.
Limitation: Repository ownership and update process remain part of the trust model.
Backup integrity record
Strength: Supports confidence that backup content is consistent before restore.
Limitation: Integrity alone does not prove the backup can be decrypted or restored successfully.
Audit evidence
Strength: Can record when integrity checks occurred, which version was evaluated, and what decision followed.
Limitation: Audit evidence should avoid secrets and remain subject to source-health and retention controls.
Design Principles
Eight Principles for Hashing and Integrity Architecture
Hashing is not encryption
Hashing is one-way and usually supports comparison or verification; encryption is reversible with the proper key.
Review: Can the team explain why the control needs comparison rather than secrecy?
Integrity needs a trusted reference
A digest becomes useful only when the expected value comes from a source the architecture trusts.
Review: Who owns and protects the expected digest or manifest?
A hash does not prove authorship
Two parties can compute the same digest for the same content.
Review: If signer identity matters, is a digital signature or another authenticated trust mechanism required?
Salts are unique, not secret
A salt separates password-verifier inputs so identical passwords do not produce identical stored values.
Review: Does each verifier have a unique salt and a purpose-built password-hashing method?
Fast file hashes and password hashes have different goals
File integrity values are often designed for efficient comparison, while password verification should use a dedicated password-hashing design.
Review: Is the chosen mechanism appropriate to the security problem?
Mismatches need a decision
Detecting a changed artifact is useful only if the architecture defines what happens next.
Review: Does a mismatch block, quarantine, alert, or require review?
Evidence must be version-aware
A correct digest for version 4 does not verify version 5.
Review: Are object version, digest, timestamp, and owner connected in the evidence?
Integrity and confidentiality can coexist
The same data may require encryption for secrecy and hashing/signatures for integrity or authenticity.
Review: Does the architecture separately identify each protection goal?
Vocabulary
Hashing, Salting, and Integrity Terms
Hash
A fixed-size digest produced by applying a one-way hash function to input data.
Digest
Another term for the output of a hash function.
Hash function
A one-way mathematical function that maps input data to a fixed-size output used for comparison and related security goals.
Salt
Unique, non-secret random data combined with password input before deriving a stored verifier.
Password verifier
Stored one-way data used to check whether a supplied password is correct without storing a recoverable plaintext password.
Integrity
Confidence that data or an artifact has not changed unexpectedly.
Reference digest
A trusted expected hash value used to compare against an observed object.
Manifest
A structured record that may list artifacts, versions, digests, and other release or package metadata.
Collision
A conceptual condition where different inputs produce the same hash output.
Preimage resistance
The security property that makes it infeasible to recover an original input merely from its hash output.
Integrity mismatch
A condition where the observed digest differs from the trusted expected digest.
Verification evidence
Metadata showing what object was checked, against which trusted reference, when, by which system, and with what result.
Fictional Integrity Register
Seven Northbridge Integrity Protection Records
INT-01Confirmed
Student Services Release Package
Purpose
Verify release artifact integrity before deployment
Method
Digest comparison against trusted release manifest
Reference owner
Release Engineering
Object owner
Application Team
Decision point
Before deployment
Mismatch action
Block deployment and open release review
Freshness
Current for release version 8.4
Evidence
Manifest ID + artifact version + verification event
Architecture concern
Digest match proves consistency with the trusted manifest, not signer identity by itself.
INT-02Confirmed
Configuration Baseline Package
Purpose
Detect unexpected package changes
Method
Digest comparison against approved baseline record
Reference owner
Platform Security
Object owner
Infrastructure Team
Decision point
Before promotion between environments
Mismatch action
Hold promotion and require configuration-owner review
Freshness
Current
Evidence
Baseline version + digest + approval record
Architecture concern
The baseline repository itself is part of the trust boundary.
INT-03Confirmed
Workforce Password Verifiers
Purpose
Verify passwords without storing recoverable plaintext credentials
Method
Purpose-built password hashing with unique salt per account
Reference owner
Identity Platform
Object owner
Identity Security
Decision point
Authentication verification
Mismatch action
Authentication fails without logging the password
Freshness
Current policy
Evidence
Verifier format version + salt-present flag + migration state
Architecture concern
Authentication logs must never record plaintext passwords or reusable secrets.
INT-04Confirmed
Backup Manifest
Purpose
Verify backup content consistency before restoration
Method
Versioned digest manifest
Reference owner
Resilience Team
Object owner
Backup Platform
Decision point
Restore preparation
Mismatch action
Stop restore and review affected backup set
Freshness
Current for last tested backup
Evidence
Backup ID + manifest version + restore-check record
Architecture concern
Integrity evidence does not replace decryption-key availability or a full restore test.
INT-05Conditional
Partner Data Import Package
Purpose
Detect unexpected changes before ingestion
Method
Digest comparison supplied through approved partner workflow
Reference owner
Integration Owner
Object owner
Partner Integration Service
Decision point
Before import
Mismatch action
Quarantine package and request partner review
Freshness
Partner reference process under review
Evidence
Package ID + digest + sponsor record
Architecture concern
The partner reference channel needs renewed trust documentation.
INT-06Blocked
Legacy Reporting Archive
Purpose
Historical file consistency checking
Method
Old digest list stored beside archive
Reference owner
Unknown
Object owner
Reporting Operations
Decision point
Manual checks only
Mismatch action
Undefined
Freshness
Stale
Evidence
Partial digest list with no current owner
Architecture concern
A digest stored beside the data with Unknown ownership is not a strong trusted reference.
INT-07Conditional
Analytics Export Package
Purpose
Verify approved export content before transfer
Method
Versioned digest + approved export manifest
Reference owner
Analytics Product Owner
Object owner
Export Service
Decision point
After generation, before transfer
Mismatch action
Cancel transfer and rebuild from approved source
Freshness
Current
Evidence
Export job + manifest + digest + policy decision
Architecture concern
Confidentiality and authorization remain separate from the integrity check.
Fake Dashboard
Northbridge Integrity Protection Dashboard
Fictional hashing, password-verifier, manifest, and integrity evidence summary
INT-06 stores an old digest list beside the legacy archive. The reference owner is Unknown, the evidence is stale, and no mismatch response is defined.
Defensive recommendation: Keep the control Blocked until a trusted owner, protected reference source, current version scope, and mismatch action are established.
Hashing vs. Encryption
One-Way Verification and Reversible Confidentiality Solve Different Problems
Hashing
Use when the architecture needs a one-way comparison or verifier. The original input is not intended to be recovered from the digest.
Encryption
Use when authorized parties need to recover protected data through a governed key relationship.
The same object can need both.
A backup package might be encrypted for confidentiality and also verified against an integrity manifest before restoration.
A fictional identity platform needs to verify passwords without keeping a recoverable copy of each user's password.
Safe Fictional Lab
Build an Integrity Protection Review
Use fictional files, artifacts, manifests, password-verifier records, owners, and synthetic evidence only. Do not test or attack real hashes, accounts, or credentials.
1
Create at least fifteen fictional integrity-protection records.
2
Give every record a stable INT ID.
3
Record the object or data being verified.
4
State the integrity purpose.
5
Record the verification method conceptually.
6
Identify the trusted reference source.
7
Assign reference owner.
8
Assign object/application owner.
9
Record object version.
10
Record verification decision point.
11
Record mismatch action.
12
Record evidence freshness.
13
Record evidence source.
14
Classify status as Confirmed, Conditional, Unknown, Blocked, Accepted Risk, or Not Applicable.
15
Include at least four software or configuration artifacts.
16
Include at least two backup or restore examples.
17
Include at least two partner/import/export examples.
18
Include at least two password-verifier architecture records.
19
Include at least one signed-integrity example for comparison.
20
Include at least one untrusted legacy digest reference and keep it Blocked.
21
Add change triggers for object version, manifest owner, password-verifier format, application, repository, and recovery changes.
Lab boundary
Do not perform password guessing, hash cracking, credential testing, account access, or attempts to defeat real integrity controls. This lab is defensive architecture review only.
Analyze the Evidence
Evidence Analysis: Password-Verifier Design
The platform needs to verify passwords during login.
The original password does not need to be recovered.
Each account has a unique salt.
A purpose-built password-hashing design is used.
Authentication logs exclude plaintext passwords.
Which architecture statement is strongest for INT-03?
Advanced Challenge
Redesign a Fictional Integrity Program With Weak Trust References
A fictional organization computes hashes for software, backups, configuration packages, and exports, but the expected values are scattered across shared folders with unclear ownership and no version control. Redesign the integrity architecture conceptually.
1
Object inventory
2
Integrity purpose
3
Trusted reference owner
4
Protected reference source
5
Object version
6
Verification event
7
Mismatch action
8
Release blocking
9
Backup restore checks
10
Partner import quarantine
11
Signed-manifest use
12
Password-verifier governance
13
Salt uniqueness
14
Safe authentication logging
15
Evidence freshness
16
Lifecycle review
A strong redesign should make every integrity conclusion traceable to a trusted expected value, a current object version, a verification event, an accountable owner, and a defined response.
Defender Habits
A14.3 Defender Checklist
Skill Check
Seven Questions
Check Your Understanding
A14.3 Mini Quiz: Hashing, Salting, and Integrity Concepts
Choose your answers first. Explanations appear only after submission.
1. What is the main conceptual difference between hashing and encryption?
2. What does a matching file hash prove most directly?
3. Why are unique salts used in password-verifier storage?
4. Which statement about salts is strongest?
5. Why does an integrity check need a trusted reference digest?
6. What should happen when an important integrity check fails?
7. Which statement is strongest?
Portfolio Prompt
Portfolio Build — Integrity Protection Review
Create the third artifact for your A14 Key-Management Design Recommendation: a fictional Integrity Protection Review with at least fifteen records. Include INT ID, object/data, integrity purpose, verification method, trusted reference, reference owner, object/application owner, version, decision point, mismatch action, evidence source, freshness, status, concern, next action, and change trigger. Include password-verifier records using only safe architectural metadata.
Clearly distinguish hashing from encryption.
Show where the trusted reference comes from.
Tie digests to object versions.
Define mismatch behavior.
Include unique-salt password-verifier concepts without any attack content.
Keep one unowned legacy reference Blocked.
Confidence / Readiness Reflection
Are You Ready for A14.4?
A14.4 adds signer authenticity to integrity through digital signatures. Before continuing, make sure you can explain why a matching hash tells you that content matches a reference but does not, by itself, tell you who signed or published it.
1
I can distinguish hashing from encryption.
2
I can explain why integrity needs a trusted reference.
3
I can explain why a hash does not prove authorship.
4
I can explain unique salts conceptually in password-verifier storage.
5
I can evaluate integrity evidence using version, owner, freshness, and mismatch handling.
Portfolio Build Guide
How to Make the Integrity Protection Review Look Professional
Name the integrity object
Show exactly which file, package, verifier, backup, export, or record is being checked.
Show the trusted reference
A digest is only useful when the expected value comes from a protected, accountable source.
Bind evidence to version
Record artifact version, manifest version, or verifier-format version so stale evidence is obvious.
Define mismatch behavior
Block, quarantine, review, or remediation should be explicit.
Separate integrity from authenticity
Use signatures when the publisher or signer identity matters.
Keep password records conceptual
Use fields such as verifier format, salt-present flag, owner, and migration state—never plaintext credentials.
Show evidence freshness
Current, Partial, Stale, Missing, and Unknown should change the decision state.
Connect forward
A14.4 will build on this integrity model by adding signer identity and digital-signature trust.
Key Takeaways
What You Should Remember
1.Hashing is a one-way transformation used for comparison and verification.
2.Encryption is reversible with the appropriate key and primarily supports confidentiality.
3.A matching digest supports content consistency with a trusted reference but does not prove authorship.
4.Salts are unique, non-secret values used in password-verifier construction.
5.Password storage should use purpose-built one-way verification rather than recoverable plaintext.
6.Integrity controls need a trusted reference and a defined mismatch action.
7.Version and evidence freshness matter when verifying artifacts.
8.Signatures can add signer-authenticity evidence to integrity.
9.Integrity and confidentiality are separate goals that may both apply to the same data.
10.The Integrity Protection Review prepares you for A14.4 Digital Signatures Conceptually.
Lesson Safety Boundary
Integrity learning does not require cracking hashes or passwords
Do not attempt password guessing, hash cracking, credential attacks, account access, real verifier testing, or methods for defeating integrity checks. All password-verifier, digest, manifest, and integrity records in this lesson are fictional and defensive.
Lesson Complete
A14.3 Hashing, Salting, and Integrity Concepts Complete
You now have an integrity model built around one-way hashing, trusted references, version-aware evidence, mismatch decisions, safe password-verifier concepts, salting, and integrity limits. Next, A14.4 focuses on Digital Signatures Conceptually.