cleaned up language so its actually readable

This commit is contained in:
shockrahwow 2019-09-24 10:06:00 -07:00
parent 4efc07c2fe
commit 734698e262

View File

@ -6,11 +6,33 @@ Think of a box that we put things inside of:(put simply)
* Private key: can open the box
* Public key: can lock the box
Caveats:
The idea works on the principle that public keys are public so anyone can lock a message down but only the owner/creator of that public key can open those locked messages with their private key.
Public keys contain a unique signature, which can be used to _sign_ a message. Even though everyone can open the message they also know who locked the box.
## Public Keys
Imagine then, lock the box with private key(secure) and sign it with the public key(authorized).
Can be used to open something if it was locked with a private key.
## Private Keys
If used to lock something the public key can be used to then open the box.
_The catch_: that message is also signed so we know exactly who the message is coming from.
## Both together
> Message => Lock(message, private key)
_Sign_ the message
> Signed Message => Lock(signed message, public key)
Lock the message like normal
Once the intended person has the package they:
* Open it with their private key
* Check the signature
* Find the public key for that signature
* Open the remaining layer with the public key
That last part only works because locking with a private key allows the public key to open the box afterwards.