Public-key cryptography
Incoming messages are encrypted with the recipient's public key and can only be decrypted with their corresponding private key. The keys are related mathematically, but the user's private key cannot be easily got from the widely used public key.  The most usual problem with this method arises when private key is accidentally leaked.