Question: what is difference between public key and private key?
Answer: Private Key is used to both encrypt and decrypt the data and is shared between the sender and receiver of encrypted data. The public key is only used to encrypt data and to decrypt the data, the private key is used and is shared. ... The public key is free to use and the private key is kept secret only.