Question: what are the differences between public and private keys?
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.