218
Chapter 11
I
Where to go next
That worked! A simple cipher like this is easy to break. The Germans
used a much more complicated cipher in WWII, but it was still cracked.
Diffie-Hellman solves both problems:
• Both parties don’t need to know the cipher. So we don’t have to meet
and agree to what the cipher should be.
• The encrypted messages are
extremely
hard to decode.
Diffie-Hellman has two keys: a public key and a private key. The public
key is exactly that: public. You can post it on your website, email it
to friends, or do anything you want with it. You don’t have to hide it.
When someone wants to send you a message, they encrypt it using
the public key. An encrypted message can only be decrypted using the
private key. As long as you’re the only person with the private key, only
you will be able to decrypt this message!
The Diffie-Hellman algorithm is still used in practice, along with its
successor, RSA. If you’re interested in cryptography, Diffie-Hellman is a
good place to start: it’s elegant and not too hard to follow.
Dostları ilə paylaş: