Cryptography Interactive
Diffie-Hellman
Block Cipher Modes
Feistel Network
Interactive Diffie-Hellman Key Exchange
p =
g =
Alice's a =
Bob's b =
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 blocks:
Encrypt
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)
Rounds:
Animate
Reset
Click "Animate" to step through the Feistel rounds.