**Private key**is used to both encrypt and decrypt the data and is shared between the sender and receiver of encrypted data.

**Public key**is only used to encrypt data and to decrypt the data, free to use and is kept secret only.

**Private key**is used to both encrypt and decrypt the data and is shared between the sender and receiver of encrypted data.

**Public key**is only used to encrypt data and to decrypt the data, free to use and is kept secret only.

Did this answer your question?