3 ms·
Public key cryptography breaks a key into two parts: the public key and the private key. A message is encrypted with the public key, but can only be decrypted w
by kazinator 3y ago
Public key cryptography breaks a key into two parts: the public key and the private key. A message is encrypted with the public key, but can only be decrypted with the private key, not with the public key.
You publish the public key to the world: "hey everyone, here is my public key; write me!". People use the public key to write you secret messages, which only your private key can decode, and that key is your guarded secret.
That message someone sends to you can be a symmetric key, which you then use after that to communicate with that someone (for a while, until you again agree on a different key).
- dreamcompiler 3y agoOne FAQ is "Why do we even need symmetric cryptography? Why don't we just do everything with public key cryptography now?" It's because public key cryptography is extremely CPU resource-intensive, while symmetric cryptography is not. So we typically use public key crypto only to exchange symmetric keys, and that way we get the best of both worlds without chewing up too much CPU time.