Data encryption (Encryption)
Turning data into an unreadable form that only the key holder can open
What is Data encryption (Encryption)?
Data encryption is the process of turning readable information into an unreadable form using an encryption algorithm and a key. Only someone with the right decryption key can turn it back. Encryption protects data in transit (for example between a browser and a website over HTTPS), at rest (disk, database or backup encryption) and in communication between people (end-to-end encryption in messaging apps). By the way keys are used, encryption is either symmetric, where the same key encrypts and decrypts, or asymmetric, which uses a pair of a public and a private key.
Why It Matters
Encryption decides what happens when data ends up in the wrong hands. A stolen laptop with an encrypted disk is a hardware loss; without encryption it is a leak of customer data. The GDPR lists encryption among examples of appropriate security measures for personal data in Article 32, and under Article 34 a controller does not have to notify affected individuals of a breach if the data was unintelligible to unauthorised persons, typically thanks to encryption. For a small business, encryption is one of the cheapest security measures: on websites, computers and in the cloud it usually just needs to be switched on and the keys looked after.
Real-World Examples
- 1A website with HTTPS encrypts forms, logins and payments between the browser and the server.
- 2A company laptop has BitLocker (Windows) or FileVault (macOS) turned on, so nobody can read the disk if it is lost.
- 3An online shop's backups are encrypted before upload to the cloud with a key the storage provider does not know.
- 4The team shares sensitive information through an end-to-end encrypted app rather than ordinary email.
- 5User passwords are stored hashed, not encrypted, so they cannot be recovered from the database.
How encryption works
Encryption uses three elements: plaintext (the original data), an algorithm (a mathematical procedure such as AES) and a key (a secret value without which the result cannot be read). The output is ciphertext, which looks like a random string of characters.
The algorithms are public and reviewed by experts. Security therefore depends not on keeping the method secret but on the length and protection of the key. If an attacker gets the key, encryption is worthless, which is why key management matters as much as encryption itself.
Symmetric vs asymmetric encryption
Symmetric encryption uses one key to both encrypt and decrypt. It is fast, so it handles most of the data volume: disks, databases, backups and the web traffic itself. The most widely used standard is AES, published by the US NIST in 2001 (FIPS 197) with key lengths of 128, 192 and 256 bits. Its weak point is sharing the key: both parties need it and nobody else may intercept it.
Asymmetric encryption (public-key cryptography) uses a key pair. What you encrypt with the public key can only be opened with the matching private key, so the public key can be shared with anyone. It is much slower, so it is mainly used for secure key exchange and digital signatures. Well-known algorithms are RSA and elliptic-curve cryptography (ECC).
- Speed: symmetric is fast, asymmetric is slow.
- Keys: symmetric has one shared key, asymmetric a public and private pair.
- Use: symmetric for encrypting data, asymmetric for key exchange and signatures.
In practice the two are combined. Asymmetric cryptography securely agrees a shared key, then the data is encrypted symmetrically. This is how HTTPS and most messaging apps work.
End-to-end encryption
End-to-end encryption (E2EE) means a message is encrypted on the sender's device and decrypted only on the recipient's device. Neither the server it passes through nor the service provider can see the content. Signal and WhatsApp work this way, and in December 2023 Meta turned on end-to-end encryption by default for personal chats and calls on Messenger.
The difference from HTTPS: HTTPS encrypts the connection between you and the server, but the server sees the data in plain form. With end-to-end encryption the server is just a courier carrying a sealed envelope. Ordinary email is not end-to-end encrypted, so sensitive documents are better sent as an encrypted attachment or through an E2EE service.
Disk encryption and data at rest
Disk encryption protects data at rest, when a device is switched off or stolen. Windows uses BitLocker (Pro editions and above), while Windows 11 Home offers simplified device encryption, which needs compatible hardware (TPM 2.0) and a Microsoft account. On a Mac it is FileVault. Modern iOS and Android phones encrypt storage by default when a screen lock is set.
- Check that disk encryption is on for every company laptop, not just the manager's.
- Store the recovery key away from the device (for example in a company password manager), otherwise a hardware fault can lock you out too.
- Encrypt backups and external drives as well. Data backup without encryption just moves the leak risk elsewhere.
Disk encryption does not protect against ransomware or an attacker who logs into a running computer. It complements other measures rather than replacing them.
Encryption on websites: HTTPS and TLS
On the web, encryption shows up as HTTPS. When a connection starts, the TLS protocol (formerly SSL) verifies the server certificate, agrees a key asymmetrically and then encrypts the traffic symmetrically. The current version, TLS 1.3 (RFC 8446 from 2018), removed outdated algorithms and always requires key exchange with forward secrecy. Certificates and the difference between HTTP and HTTPS are covered under SSL / HTTPS.
HTTPS only protects data in transit. Data stored on the server, such as orders, form submissions or database backups, needs its own protection: encrypted backups, restricted access and regular updates. See the full website security checklist.
Encryption is not hashing
Encryption is reversible: with the key, data returns to its original form. Hashing is one-way: a password becomes a fingerprint from which the password cannot be recovered. That is why, following OWASP guidance, passwords are not stored encrypted but hashed with an algorithm designed for passwords (such as Argon2 or bcrypt). If a system can email you your forgotten password in readable form, it is storing it wrongly.
Encryption and quantum computers
A powerful quantum computer could one day break today's asymmetric algorithms such as RSA. On 13 August 2024 NIST therefore published the first post-quantum cryptography standards: FIPS 203 (ML-KEM) for key exchange and FIPS 204 and 205 for digital signatures. Browsers and large providers are rolling them out gradually. For a small business there is one task today: use up-to-date software and services that handle the transition for you.
When to bring in an expert
Turning on disk encryption or HTTPS is something you can do yourself. An expert is worth it when a website or app stores personal or payment data, when you need encrypted off-server backups, or when keys are managed by several people. As part of website maintenance we look after HTTPS, off-server backups and updates. Encryption is one layer of cybersecurity, alongside two-factor authentication and the rules of the GDPR.
Frequently asked questions
What is data encryption?
Data encryption turns information into an unreadable form using an algorithm and a key. Only someone with the right key can read it. It is used for data in transit (HTTPS), data at rest (disks, databases, backups) and communication (end-to-end encrypted chats).
What is the difference between symmetric and asymmetric encryption?
Symmetric encryption uses one key to encrypt and decrypt and is fast. Asymmetric encryption uses a public and private key pair and is slower. In practice they are combined: the key is agreed asymmetrically and the data is encrypted symmetrically.
What does end-to-end encryption mean?
End-to-end encryption means a message is encrypted on the sender's device and decrypted only on the recipient's device. The service provider and server cannot see the content. Signal and WhatsApp use it, and since December 2023 so do personal chats on Messenger by default.
Does the GDPR require encryption?
The GDPR does not explicitly mandate encryption, but Article 32 names it as an example of an appropriate measure for securing personal data. If encrypted data leaks, Article 34 means the controller does not have to notify affected individuals. In practice, encryption is one of the simplest ways to reduce the risk.
How do I turn on disk encryption?
On Windows Pro turn on BitLocker; on Windows 11 Home use device encryption under Settings > Privacy & security (if your hardware supports it). On a Mac turn on FileVault. Always store the recovery key somewhere other than that computer.