DATA INTEGRITY

#️⃣ Hashing: The Digital Fingerprint

Learn why hashing is not encryption and how organizations verify integrity using digital fingerprints.

🧬 Your Fingerprint

Your fingerprint identifies you.

Even a tiny change creates a different pattern.

Hashing works similarly.

A hash creates a unique digital fingerprint for data.

🤔 What Is A Hash?

A hash function takes data as input and produces a fixed-length output.

Example:

Hello World

Hash:

a591a6d40bf42040...

The output is called:

Hash Value

⚙️ Hashing Process

📄 Data
⬇️ #️⃣ Hash Function
⬇️ 🔍 Fingerprint

🚨 Hashing Is NOT Encryption

Encryption Hashing
Can be decrypted Cannot be reversed
Protects secrecy Verifies integrity
Uses keys No decryption key

⚡ The Avalanche Effect

Tiny changes produce completely different hashes.

Hello World

Hash A:

a591a6d...

hello World

Hash B:

64ec88ca...

Only one letter changed.

The fingerprint changed completely.

📦 Verifying Downloads

Software vendors often publish:

SHA-256:
7d4f2e6a...

After downloading:

  • Calculate your file hash
  • Compare values
  • Match = file unchanged

This helps detect corruption or tampering.

🏆 Common Hash Algorithms

Algorithm Status
MD5 Legacy
SHA-1 Legacy
SHA-256 Widely Used
SHA-512 Widely Used

🛠 Practical Commands

Generate SHA-256 hash:

sha256sum file.txt

Generate SHA-512 hash:

sha512sum file.txt

Commonly used by Linux administrators and forensic investigators.

🔍 Hashing In Digital Forensics

Investigators often hash evidence.

Why?

  • Prove files weren’t modified
  • Verify evidence integrity
  • Detect unauthorized changes

Hashes act like evidence seals.

🔑 Password Storage

Good systems don’t store:

MyPassword123

Instead they store:

9b8769a4...

We’ll explore this further in the next chapter.

🏢 Where Hashing Is Used

🔐 Password Storage
📦 Software Downloads
☁️ Cloud Storage
🔍 Digital Forensics
🛡 File Integrity Monitoring
📜 Digital Signatures

🏆 Key Lesson

Hashing isn’t about hiding data.

It’s about verifying data.

The goal is not secrecy.

The goal is:

Trust Through Integrity

NEXT CHAPTER

🧂 Salting Passwords

Discover why hashing alone is not enough for password security and how salts protect against common password attacks.