Key Pairs
conceptA key pair is two mathematically linked keys:
- a private key (secret, kept by you)
- a public key (shared with others)
The public key can verify that a message was created by the private key without revealing the private key.
The two halves, precisely:
Private key—a secret file that proves your identity. If stolen, it can be used to impersonate you.
Public key—a non-secret file used by a server to verify signatures.
The rules that follow:
- The private key must never be shared
- The public key is safe to share
- The server stores only public keys
That last rule is the one people doubt, and it holds: sharing a public key gives away nothing that lets anyone impersonate you.