Skip to main content
Loading page…
Python Mastery
Chapter 51
Lesson 1 of 4
Hashing & Integrity
Contents
Notes
Tutor
Concept
What Is a Cryptographic Hash? The Mental Model
Loading activity…
Previous
1 / 10
Continue
Contents
Notes
Discussion
Tutor
28 min
10 activities
0 of 10 done
In this lesson
1
What Is a Cryptographic Hash? The Mental Model
2
Hashing Strings and Bytes with hashlib
3
Hashing Large Files in Chunks
4
Practice: Hash Verification
5
HMAC — Message Authentication Codes
6
Timing Attacks and compare_digest
7
Practice: Sign and Verify a Payload
8
Common Hash Pitfalls
9
Hash Use Cases: Right Tool for the Job
10
Hashing Fundamentals Quiz
Objectives
Learner can explain what a cryptographic hash is and is NOT
Learner can hash strings and files using hashlib.sha256
Learner can describe the avalanche effect and why it matters
Learner can verify file integrity using checksums
Learner can create and verify HMACs for message authentication
Chapter 51 · Cryptography, Hashing & Security
Hashing & Integrity
Passwords, Secrets & Tokens
Encryption Essentials
Application Security & Common Vulns
Previous: Packaging & Distributing a CLI
Next: Passwords, Secrets & Tokens