Learning about 521-bit elliptic-curve Diffie-Hellman cryptography, or 521-bit ECC for short is best done by learning what it was built upon. ECC encryption is very complicated math, and it’s easier if we start at the beginning of how cryptography started.

If you already have a good handle on encryption, skip ahead to the part on 521-bit ECC right now. If not, take the time to learn about how encryption started in a very basic way, to its evolution during World War II, to what it had to become thanks to modern computing power. This will help you better understand encryption in general before examining ECC encryption. If you already know about the history of cryptography, feel free to skip to the 521-bit ECC explainer section.

# The history of cryptography

The earliest known use of any type of encryption was used by Julius Caesar, hence why it is known as the Caesar Cypher. A Caesar Cypher is a substitution cipher where the original text is shifted a certain number of letters over. Here’s a very basic example:

While substitution cyphers are old, they are still the basis of all cryptography—all encryption a substitution cipher. The example above is pretty easy to break because of how the English language is built. Patterns quickly emerge with simple shifts like the Caesar Cipher. Here is some text I will encrypt so that you can see the weakness for yourself:

**I will attack the bad guys at noon.**

Here is that same message with a Caesar Cipher shift of four, this text is known as “ciphertext”:

**m ampp exxego xli feh kycw ex rssr.**

The first problem is the double letters are easy to see and know to try the only double letter combinations in the English language. In this case, you try: “pp” is “ll”, “xx” is “tt”, and “ss” is “oo”. And then based on “e” is one of the most common letters in English and “M” has to be “I” or “A”, you can try these combinations and brute-force cracking the code.

This simple cipher is defeated rather quickly, as any cryptographer would know to shift the rest of the letters by four and break the code. Originally, breaking encryption—cracking the code—was trying to figure out the message just like this. Based on what we know about language, try different substitutions until you figure out the message.

Then came modern encryption where it’s impossible to figure out a message by brute force. In modern encryption the you might have “a” = “r”, but then “b” might equal “r” later—each letter in the message uses a different substitution and the only way to figure it all out is with math.

### The next step in cryptography

With this form of encryption being so easy to beat by hand, a new system was needed. It took a major war for this to happen, and the worst one of all at that: World War II brought about the “unbreakable” Enigma machine of Nazi Germany.

The next step was to make it so the ciphertext had a different shift for each letter. This was done by the Nazis using a series of three rotating rotors which changed for each letter, as well as a switchboard that swapped pairs. Here’s an explanation:

This machine was capable of an astronomical number of combinations that you’d have to try to break the code manually. To be exact, there were:

**158,962,555,217,826,360,000 combinations**

It wasn’t unbreakable thanks to the work of Alan Turing and Gordon Welchman, but it certainly will not work with the advent of modern computers. 158 trillion + combinations is a nightmare for a human to manually figure out, but AI was recently used to break an Enigma message in 13 minutes at a cost of $7. Even with the $7 spent, the computer didn’t break the encryption, it *merely guessed the right settings to decode the message*.

With encryption being used to store everything from passwords and banking details to our very basic communications, another step needed to be taken. We need encryption with far, far more than 158 trillion possible keys.

# How modern encryption works

Above we looked at turning a simple message into an encrypted form:

**I will attack the bad guys at noon.**

Became this with a four letter Caesar Cipher shift:

**m ampp exxego xli feh kycw ex rssr.**

Now let’s see what happens to the unencrypted text when we apply modern AES 256 bit encryption to this message:

**9T5v3IPGKYpy2E/VDqyUkUeqHNA1oON3GXBmIS6IYrDHzK30QUAqRjb7J9LVkzsV**

It’s not even the same number of letters, and there are now numbers in it…hey, where did all of the spaces go?!? Modern encryption encrypts everything—spaces and punctuation included*.* Any pattern could be figured out by the right software being written, so spaces are encrypted along with the letters and numbers to further obscure what is being encrypted.

### AES Encryption

There are no known ways to break AES encryption. The only way anyone could break it is with a brute force hack guessing the encryption key—the mathematical equivalent of the Enigma machine settings— repeatedly until the right one is found. Here’s an all-new message encrypted with AES 256:

**/qnSZb/VfHYFYp+em8bnoHl6eGExDEeFI3yZnZQ+eIA=**

Try to guess that message using the same principles as the Caesar Cipher—it could take you centuries even with the most modern computers.

Try it for yourself using this tool’s decryption and my settings, which are the ‘key’ to unlocking this:

**Input:**Base64**Mode:**ECB**Key size:**256**Secret key:**12345678912345678912345678956789

Put those setting in here and you will get the message which is revealed at the end of this article. It looks like a jumbled meaningless mess right now—and that’s the point—but you can decrypt it and see the secret message.

## Modern encryption practices

Now that we’ve worked up to the era of computers we need to start thinking about how the key is shared. The Nazis had a schedule they followed daily on “key” sheets issued every month on how to set up their Enigma for that day, and these sheets would be captured on occasion. The threat of the “key” being captured is an even bigger issue in an online context as the key will be shared along with the message, leading to more key thefts.

### How symmetric encryption works

Encryption has two basic forms of key sharing in the computing era. The first is symmetric encryption, and it works like this:

- A sender puts a message in a box.
- The box is locked with a key and sent through normal channels.
- The box is received by the intended recipient.
- The receiver uses the same key as the sender to open the box.

This is the most popular type of encryption, with many encryption algorithms using this method. AES is probably the most well known, and SKY ECC uses AES 256 bit to encrypt the metadata of messages sent on our network. Here’s a diagram that visually explains symmetric encryption:

The Nazis used a monthly schedule of how to set up the Enigma machine as it changed daily. This is also an example of a symmetric key. If you look at symmetric encryption logically you know that there’s a flaw in it—the sharing of the key and how it could be intercepted. This lead to the next development in encryption algorithms.

### How asymmetric encryption works

The development of a new model was needed for enhanced security in today’s modern age. We needed a way for people to exchange keys in the open, without anyone being able to figure the key out. This model is called asymmetric encryption:

- The receiver sends an open box to the sender.
- The receiver keeps the key to the open box.
- The sender places their message in the open box and locks it.
- The box is sent to the receiver who opens it back up with the key they kept.

The difference here is that the complete key never has to be sent with the message. This has become a very popular type of encryption, most notable in the SSL/TLS encryption standard which powers most browser traffic, but also in ECC encryption which we use to encrypt messages on our SKY ECC phones.

Here’s a slightly more complicated look at how asymmetric encryption works with the ‘open box’ replaced by the idea of private and public keys. Anyone can see the public key, but only those who know the private key can decrypt it.

Who has the private key? The receiver who sent the ‘box’.

In an online context, not using encryption of any kind is like walking around with a sign above your head with your information written on it. This “sign” in the virtual world could include your name, address, credit card data, banking information, passwords, and any other data you would rather keep secure. Encryption, either symmetric or asymmetric, protects this data.

## What is 521-bit elliptic-curve Diffie-Hellman cryptography?

521-bit elliptic-curve cryptography with Diffie-Hellman key exchange (ECDH) uses all of the above principles in some manner. This is the next step in the chain of encryption’s growth, and understanding what came before helps you understand what’s going on now with elliptic-curve cryptography (ECC).

The important things to understand about ECC encryption is:

- It is an asymmetric form of key exchange.
- ECC encryption offers the same strength of key size as another system with much smaller key sizes.
- Smaller key sizes allow for faster encryption.
- 521-bit ECC offers the same strength as 15,360 RSA, while 2048 RSA is the current standard.

Next is that it uses the properties of how a line passes through an elliptical curve for the basis of its encryption algorithm. Here’s an example of what an elliptic curve looks like:

To get a little more complicated: going on a point of A -> B on an elliptic curve is very easy for computers, going the opposite way B -> A is very hard. This forms the basics of why ECC encryption is a powerful cryptographic method because it’s very fast to calculate one way but very difficult to reverse engineer.

#### What is the Discrete Logarithm Problem?

This is known as the Discrete Logarithm Problem and means that messages are very hard to decrypt without the right key. It exists because multiplication is very fast, but ‘division’ (logarithm being a word which roughly means division) is very slow.

This can be easily explained by the following video:

It’s easy to combine two colours to get a third colour, and that can be intercepted by a third-party, but it’s very hard to turn that combined colour back into its original two colours. It’s easy to go from A -> B, but difficult to go from B -> A.

ECC encryption is used for SKY ECC phones as it’s been around long enough to be studied and known as secure, uses asymmetric key exchange for higher security, has small key sizes for faster processing, and computers can do it easily but not ‘un-do’ it easily.

### Comparing 521-bit ECC encryption to RSA

The current standard used across the internet is RSA. The standard bit length used for RSA at this time is 2048, but this shifts as our need for stronger encryption increases. Both ECC and RSA are asymmetric algorithms, but they differ greatly in key sizes.

Here’s a comparison table:

As you can see, ECC’s smaller key sizes are far superior to AES-256, while still being as strong or stronger.

## Why SKY ECC uses 521-bit ECC Encryption

521-bit ECC is fundamentally future-proofed against cryptographic changes and can protect you for decades to come. Another important reason that 521-bit ECC encryption is used for SKY ECC is that ECC encryption is a much faster type of cryptography for larger key sizes than anything else currently used. This has a number of benefits for SKY ECC:

**Speed:**Considering that SKY ECC is a mobile app, speed is of the essence. Chat responses would be slower with a key size that takes security to the level which our users deserve…much slower.**Security:**Being fast is easy, but being fast and secure is very hard. Given the small size of the keys which ECC generates, and the quick speed at which these large and difficult keys are decrypted by those with the key, it can be said that it is magnitudes more secure than that which is standard for online banking.

### 521-bit ECC Encryption is incredibly secure

How many magnitudes more secure? What a great question. Let’s look at what banking uses and how it compares to ECC encryption:

- RSA 2048-bit keys are secure enough for online banking.
- RSA 2048-bit keys are equivalent to 224-bit ECC keys.
- 521-bit ECC keys are the same strength as RSA 15,360-bit keys.

Messages being sent over SKY ECC are more secure and much faster than their equivalent in RSA. Let’s list the other ways ECC encryption is superior to RSA:

- Faster key generation
- Keys, ciphertext, and signatures are all smaller
- Encryption and decryption is faster
- US government better supports ECC
- Much lower latency than inverse throughput thanks to two-stage signature computation

This all adds up to SKY ECC customers being more secure with less computational power needed, which is vital for secure communications on a mobile phone.

## ECC is the future of encryption

ECC is the future of encryption. ECC is the encryption standard of the future, and you don’t have to take our word for it. The NSA stated in their paper “The Case for Elliptic Curve Cryptography” in 2005:

*“The best assured group of new public key techniques is built on the arithmetic of elliptic curves. This paper will outline a case for moving to elliptic curves as a foundation for future Internet security.”*

This was stated over 14 years ago and it still holds true today as experts see higher-level ECC lasting until well beyond 2030.

We’ve come a long way since Caesar’s Cipher, to the Enigma machine, to today’s most innovative forms of encryption. Now, with the coming of advanced hacking and computational power, 521-bit ECC encryption is the surest way to stay safe today and into the future.