Skip to main content

Understand and Try Out Hash Functions

Calculate hash values. Understand algorithms. Try out cryptography directly in your browser.

Algorithm
  • Learn

    Get to know hash functions, from the fundamentals to concrete algorithms.

  • Understand

    Follow the technical relationships step by step.

  • Try It Out

    Explore cryptographic concepts yourself with interactive tools.

Understanding Hash Functions

Understanding Hashes

The fundamentals of hash functions: hash values, the avalanche effect, preimage resistance, second-preimage resistance and collision resistance.

Understanding Hashes

Understanding Security

How secure are hash functions really? This covers the birthday paradox, collision attacks, security strengths, and what 128, 256 or 512 bits mean in practice.

Understanding Security

Algorithms

How do concrete hash algorithms actually work? Here I break down procedures such as SHA-256 and SHA-512 step by step and look at their internal structure.

View Algorithms

Try It Yourself

You can use your own input, compare algorithms, and observe what happens inside a hash function.

SHA-256 Step by Step

Enter any text and follow the complete path through SHA-256: from UTF-8 input through padding and message schedule to the 64 compression rounds and the finished hash value.

Explore SHA-256

Birthday Collision Simulator

How quickly do collisions occur as the possible hash space shrinks? Try out the birthday effect yourself.

Simulate Collisions

Compare SHA-256 and SHA-512

Use the same input for both algorithms and compare block size, word size, padding, message schedule, compression rounds and the resulting hash value.

Compare SHA-2

Where Should I Start?

New to hash functions?
Start with What Is a Hash Function? and work your way through the fundamentals from there.

Already know the basics?
Under Understanding Security you'll find collisions, preimages, birthday attacks, and the question of how secure hash functions really are.

Want to know what happens inside the algorithm?
Under Algorithms I break down SHA-256, SHA-512 and other procedures step by step.

Just looking for a specific term? The Glossary has the most important terms explained briefly.