Read this lesson as text
Hash Calculation Examples
Cryptography · Axiom Academy
EXAMPLE Hash Calculation Examples Step-by-step walkthrough of cryptographic hash functions and their properties Excellent work! You've completed the hash calculation examples. Here's what we learned: Deterministic & One-Way: Hash functions always produce the same output for the same input, but you cannot reverse the process to recover the original input. Avalanche Effect: Even a tiny change in input (like changing one letter from lowercase to uppercase) produces a completely different hash output. Fixed Output Size: Regardless of input size (empty string, single character, or large file), SHA-256 always produces a 256-bit (64 hexadecimal character) hash. Collision Resistance: It should be computationally infeasible to find two different inputs that produce the same hash output. File Integrity: Hashes serve as digital fingerprints - comparing hash values verifies files haven't been corrupted or tampered with during transmission. HMAC for Authentication: Combining a hash with a secret key creates a message authentication code that proves both message integrity and authenticity. These hash properties are fundamental to modern cryptography, enabling secure password storage, digital signatures, blockchain technology, and secure communications!
This is the written version of the interactive lesson above. See the full Cryptography course.