Homework on Public and Private Keys - Questions
- Describe the concept of public and private key with your own words.
The public Key is for everyone to see. With it, the other party can encryp something in one way, but to be able to decrypt you must have the private key.
Mathematically speaking let´s suppose I have to huge prime numbers.
There are algorithms able to detect wether a number is a prime in a fraction of a second, therefore it’s fairly easy to generate a huge prime number. However if we multiply two prime numbers, it’s extremely difficult to determine the two prime numbers decomposed.
This is the encyption concept, but more elaborated.
- What 2 use-cases can public key cryptography be used for?
First use case> To send a secret message. The receiver where I want to send my secret message generates its double key and makes me know the public one. I use the public key to encryp the message and I send to the receiver using a public channel. Everyone was able to see the public key and the encrypted message, but no one will be able to decrypt the message. In order to do so, the private key is required
Second use case> In a block chain, in order to sign a transaction I need the the double key. If I hold Bitcoin in my address, where everyone knows the public address, in order to send some Bitcoin to other person’s public address, I must be able to withdraw from my one. For everyone to recognize a legit transaction, I need to demonstrate with the secret key