Question: what is the difference between public key and private key encryption?
Answer: A public key is used to encrypt messages. A public key is published so that anyone can send a particular receiver a secure message. A private key can be used to decrypt messages encrypted with a matching public key. As the term suggests, private keys are intended to be secret.