30. Introduction to Cryptographic Hashing
Hashing converts input data into a fixed-size fingerprint, ideal for integrity checks.
Example
import hashlib
data = "secure message".encode("utf-8")
digest = hashlib.sha256(data).hexdigest()
print("SHA-256 hash:", digest)
✅ Lesson: Use secure hash algorithms like SHA-256 or SHA-512 for data integrity.