Live demo · real Iceberg v2 library
Try Iceberg with your own text
Type a message. Our server runs a real Iceberg connection between a simulated app and a simulated server, locks your message, then unlocks it, and shows you every step. Then try to break it.
-
1
The app already trusts the server
The client app ships with the server's public identity built in. Its fingerprint lets the app spot an impostor. Two signatures stand behind it: .
FingerprintPublic identity size -
2
Client → Server: “Hello”, with public values only
The app creates brand-new, single-use key pairs and sends only their public halves: one classical, one post-quantum.
-
3
Server → Client: “Hello”, signed twice
The server answers with its own public values and proves who it is with a classical and a post-quantum signature over the whole conversation so far.
-
4
Both sides work out the same secret keys, separately
The app checks both signatures, then each side combines what it received with its own private values. They arrive at identical keys without ever sending them.
public bytes exchanged0secret key bytes sent2independent locksSession id (not secret) -
5
Your message is locked
Cipher chosen for this messageAES-256-GCMChaCha20-Poly1305Both sides pick it privately from their keys. It is never sent, so outsiders can't tell which was used.Key period for this message 0Header (28 B) Encrypted text Tamper seal (16 B)Click any byte to pick it for the tamper test below.
-
6
The server unlocks it
The server checks the tamper seal, then decrypts. If a single bit had changed, it would refuse.
Verified and decrypted
Now try to break it
Attack lab
Play the attacker who sits between the app and the server and has recorded the locked message above.
Tamper
Flip a single bit in the locked message and send it on. Picked byte: random.
Replay
Send the exact same locked message again, like re-submitting a recorded payment.
Skip 10 minutes
Move this connection's clock ahead 10 minutes and send the text again. Iceberg starts a new key period: both sides make new keys and erase the old ones, with nothing extra sent.
Send another
Send the text in the box again on the same connection. Watch the bytes, and maybe the cipher, change.
In real use, the app and the server are different machines and Iceberg runs inside HTTPS. Here both sides run on our server so you can watch each step; your text reaches it over this site's HTTPS connection. Timings are measured on this server and include no network delay.