What Is Encryption?

Encryption makes readable information unreadable to anyone who does not have the right key. It is the technology that protects passwords, payments and sensitive data, both when it is stored and when it is sent over the internet.

For an organisation, encryption is rarely optional. Both the GDPR and cyber security legislation identify it as a fundamental safeguard. The difference between symmetric and asymmetric encryption, between data at rest and data in transit, and above all how the keys are managed, determines how much the protection is actually worth.

How encryption works

Encryption converts plaintext into ciphertext using an algorithm and a key. Without the right key, the information looks like random noise, even to someone who gets hold of it.

The strength lies in the key, not in keeping the method secret. On the contrary, modern algorithms are public and heavily scrutinised, precisely so that weaknesses are found. It is the key that is kept secret, and the length of the key determines how hard the encryption is to break.

Symmetric and asymmetric encryption

There are two basic types. Symmetric encryption uses the same key to lock and unlock. It is fast and suits large volumes of data, but requires the parties to share the key securely. AES is today's standard, often with a 256-bit key.

Asymmetric encryption instead uses a key pair: a public key that can be shared freely and a private key that is kept secret. Whatever is locked with one is opened with the other. This solves the problem of sharing keys, but is slower. In practice the two are often combined, for example when a website uses asymmetric encryption to agree on a symmetric key.

Data at rest and data in transit

Encryption is needed in two places. Data at rest is information that is stored, on a hard drive, in a database or in a backup. With disk encryption, a stolen computer gives nothing away.

Data in transit is information on its way somewhere, for example between a browser and a server. This is where TLS comes in, the technology behind the padlock and https in the browser, and the same principle is used in a VPN tunnel. Some services encrypt all the way, known as end-to-end encryption, where not even the service provider can read the content. Both are part of an organisation's digital security.

Where encryption is used

In an organisation, encryption is found in more places than you might think:

  • Hard drives and mobile devices, so that lost equipment does not leak data.
  • Web traffic via https, so that logins and forms cannot be intercepted.
  • Email and file transfers with sensitive content.
  • Backups, so that a leaked backup cannot be read.
  • Databases containing personal or business data.

Not the same as hashing

The two are often confused. Encryption is reversible: with the right key you get the original back. Hashing is one-way and produces a fixed value that cannot be calculated backwards.

That is why passwords are stored as hashes, not as encrypted text, so that not even the people running the system can see them in plaintext. Hashing is also used to check that a file has not been altered, as the slightest change produces a completely different value.

Key management is the hard part

The encryption itself is rarely the problem. The hard part is managing the keys. If a key is lost, the encrypted data is effectively gone, and if the key falls into the wrong hands, the protection is gone.

An organisation therefore needs procedures for where keys are stored, who has access and how they are rotated at regular intervals. It is one of the areas most often overlooked in an organisation's information security, even though it determines whether everything else holds up.

Encryption and regulatory requirements

For many organisations, encryption is not a choice. The GDPR highlights it as an appropriate measure for protecting personal data, and cyber security legislation lists encryption among the measures that organisations within its scope must consider.

Encrypted data that leaks is also easier to deal with. If the data is unreadable to whoever obtains it, the damage is reduced, and this can affect how an incident is assessed. In this way, encryption is part of a broader approach to cyber security.

Practical advice

Start with what actually needs protecting and encrypt that first: laptops, backups and sensitive data. Turn on disk encryption and https wherever they are not already in place.

Then put as much effort into key management as into the technology, and decide who is responsible for the keys and how they are rotated. A strong algorithm with carelessly managed keys provides no real security, because protection is never stronger than its weakest link.