code which allows encryption only of information so that the decoding must be done with the help of the appropriate private key
Public-key cryptography, also known as asymmetric cryptography, is a form of
cryptography in which a user has a pair of
cryptographic keys - a public key and a private key. The private key is kept secret, while the public key may be widely distributed. The keys are related mathematically, but the private key cannot be practically derived from the public key. A message
encrypted with the public key can be decrypted only with the corresponding private key.
See more at Wikipedia.org...