1. Describe the concept of public and private key with your own words.
If someone wants to secure a message, a public key is used to encrypt it, this encrypted message can only be read by someone who has the private key. So X sends a message to Y encrypting it with a public key, after this message arrives at Y, he/she decrypts the message. If Z was listening along with the conversation, he now only sees random numbers/letters, since Z doesn’t have the private key, there is no way for him/her to know what is written.
2. What 2 use-cases can public key cryptography be used for?
When sending messages through whatsapp, the messages are encrypted so that no one can just ready everyone’s messages with ease.
When developing, secure connections on a network are made through SSH. These SSH keys are used so that you are sure only you have access and you say who you are because you have the private key to establish this connection.