Cryptography Interactive

Diffie-Hellman
Block Cipher Modes
Feistel Network

Interactive Diffie-Hellman Key Exchange

Alice

Private a
—
Public g^a mod p
—
Shared secret
—
→ g^a mod p →
← g^b mod p ←

Bob

Private b
—
Public g^b mod p
—
Shared secret
—
Click "Exchange" to run the protocol.

Block Cipher Mode Comparison

Plaintext Ciphertext IV / Nonce E_k(·)
ECB:
CBC:
CTR:
Note: identical plaintext blocks (AB) produce identical ciphertext in ECB but different ciphertext in CBC and CTR.

Feistel Network (Luby-Rackoff)

Click "Animate" to step through the Feistel rounds.