Asymmetric Encryption — Blockchain Cryptography

Jura Protocol Media
4 min readMar 28, 2019

Encryption is a process of taking a message and scrambling its contents so that only certain people can look at your message.

Symmetric & Asymmetric Encryption

There are two types of encryptions:

  1. Symmetric Encryption
  2. Asymmetric encryption.

Let’s first take a look at symmetric encryption to understand why asymmetric encryption was created.

Symmetric Encryption

To do that, let me introduce you to Alice and Bob. Alice has a sensitive document that she wants to share with Bob. She uses an encryption program to protect her document with a password or pass phrase that she chooses she then sends the encrypted document to Bob. However Bob cannot open this message because he doesn’t know the passphrase that Alice used to encrypt the documents. In other words, he doesn’t have the key to open the lock. Now comes a real problem:

How does Alice share this passphrase securely with Bob?

Sending it through e-mail is risky because others might find the passphrase and use it to decrypt any messages between Alice and Bob. This is exactly the kind of problem that asymmetric encryption intends to solve.

Asymmetric Encryption

It is comparable to a mailbox on the street. The mailbox is exposed to anyone who knows its location. We can say that the location of the mailbox is completely public. Anyone who knows the address can go to the mailbox and drop in a letter. However, only the owner of the mailbox has a key to open it up and read the messages. So let’s now go back to technical details.

When using asymmetric encryption, both Alison and Bob have to generate a key pair on their computers a popular and secure way for doing this is by using the RSA algorithm. This algorithm will generate a public and private key that are mathematically linked to each other. Public keys can be used to encrypt data and only the matching private key can be used to decrypt it. Even though the keys are linked together they can not be derived from each other. In other words if you know someone’s public key you cannot derive his private key. If we retake our mailbox example then the mailboxes address would be the public key something that everyone is allowed to know. The owner of the mailbox is the only one who has the private key and that is needed to open up the mailbox.

Let’s now take a look at how Alice and Bob can use asymmetric encryption to communicate securely with each other. They start by exchanging their public keys. Bob gives his public key to Alice and Alice gives her public key to Bob. Now Alice can send her sensitive document again. She takes the documents and encrypts it with Bob’s public key. She then sends the file to Bob; who uses his private key to unlock the documents and read it because they use asymmetric encryption. Only Bob is able to decrypt the message. Not even Alice can decrypt it because she doesn’t have Bob’s private key. The strength and security of the asymmetric encryption now relies on Alice and Bob to keep their private keys well protected. If an attacker steals Alice’s private key, it can be used to decrypt all messages that are intended for Alice. However, the attacker cannot decrypt messages that were sent by Alice because that requires Bob’s private key.

Asymmetric Encryption has multiple uses

Asymmetric encryption is used in a lot of places where security really matters. It might not be aware of it but every time you visit a secure Web site via HTTPS. You’re actually using asymmetric encryption. It’s also being used to securely send emails with the PGP protocol and one last example: Bitcoin also uses asymmetric encryption to make sure that only the owner of a money wallet can withdraw or transfer money from it. So now you know how asymmetric encryption works and what the differences are between asymmetric and symmetric encryption.

Thank you for reading this article and supporting us. Hope you learnt something new. Don’t forget to like, share and clap for this.

‘Till next time.

— Join the Jura community to stay updated with the latest news:

· Get on our Telegram channel

· Follow us on Twitter, LinkedIn, and Reddit

· Read weekly articles on the Jura medium channel

· Telegram community in 한국 and Tiếng Việt,

· Instagram: juranetwork

For more information, visit jura.network

--

--

Jura Protocol Media

Redefining how blockchain protocols work from the ground up