What is encryption?

Encryption transforms readable data into ciphertext that only someone holding the right key can turn back. It protects data on networks, on disks and in backups.

How does symmetric encryption work?

One secret key both encrypts and decrypts. It is fast, which makes it the workhorse for bulk data: AES with 256-bit keys and ChaCha20 are the standard algorithms today, normally used in authenticated modes such as AES-GCM or ChaCha20-Poly1305 that also detect tampering. Modern processors include AES instructions, so a single core encrypts several gigabytes per second. The difficulty with symmetric encryption is sharing the key safely, which is where public-key methods come in.

How does public-key encryption work?

With a key pair: a public key anyone may know and a private key only the owner holds. Data encrypted to the public key can only be decrypted with the private key, and signatures made with the private key can be verified by anyone with the public one. Algorithms include RSA and elliptic-curve schemes such as X25519 for key exchange and Ed25519 for signatures. Because public-key operations are slow, protocols use them to agree on a symmetric session key, then switch to symmetric encryption for the data. TLS, SSH and WireGuard all work this way.

ToolUsed forExamples
Symmetric cipherBulk dataAES-256-GCM, ChaCha20-Poly1305
Key exchangeAgreeing session keysX25519, ECDHE, hybrid post-quantum schemes
SignatureProving origin and integrityEd25519, ECDSA, RSA-PSS
HashFingerprints, integrity checksSHA-256, SHA-3, BLAKE3
Password hashStoring passwordsArgon2id, bcrypt

Is hashing a kind of encryption?

No. A hash is a one-way fingerprint: it cannot be reversed to recover the input. Hashes verify integrity and identify data; password hashes are deliberately slow so stolen hash databases are hard to crack. Encryption is reversible by design for whoever holds the key. Mixing the two up leads to mistakes such as encrypting passwords, which lets anyone with the key read them all.

What does encryption in transit protect?

Data moving across networks, from eavesdropping and tampering. On servers that means HTTPS for web traffic, SSH for administration, TLS for database and mail connections, and WireGuard or IPsec between machines. Because we do not sell a private network, encrypting traffic between your servers is not optional: replication, backups and cluster traffic should all travel inside TLS or a WireGuard tunnel. Our SSL and TLS and Private network articles cover both.

What does encryption at rest protect?

Data on disks when the system is off or a drive leaves your control. On a rented server, failed drives are replaced by technicians and the old ones are handled by the data centre; full-disk encryption ensures they hold only ciphertext. LUKS on Linux encrypts whole partitions; ZFS can encrypt individual datasets. Encryption at rest does not protect a running, unlocked system from an attacker who has logged in, so it complements access control rather than replacing it.

How do I encrypt a data disk on a dedicated server?

With LUKS, after the operating system is installed. Encrypting a separate data partition is simplest, since the system can boot and you unlock the data over SSH. Encrypting the root file system is possible but needs remote unlocking at boot, for example a small SSH server in the initramfs, because there is no KVM console on our machines. A data partition example:

cryptsetup luksFormat --type luks2 --pbkdf argon2id /dev/md2
cryptsetup open /dev/md2 vaultdata
mkfs.xfs -L vault /dev/mapper/vaultdata
mount /dev/mapper/vaultdata /srv/vault
cryptsetup luksHeaderBackup /dev/md2 --header-backup-file /root/md2-luks-header.img

Copy the header backup and passphrase off the server; losing them means losing the data.

Why is key management the hard part?

Because encryption is only as strong as the protection of its keys. Keys stored next to the data they protect add little. Keep keys and passphrases in a secrets manager or password vault, separate duties so no single person holds everything, rotate keys when people leave, and plan for recovery: a backup encrypted with a key that existed only on the destroyed server is useless. Our Hardware security modules article covers dedicated key hardware.

Does encryption slow servers down?

Very little on current processors. AES instructions and fast elliptic-curve code mean TLS, WireGuard and LUKS typically cost a few percent of CPU at full disk or network speed. On ESSENTIAL-S, with 8, encrypting a 1 Gbps port and NVMe data at the same time uses only a small part of one core's capacity per stream. Our Data security article puts encryption into a wider data protection plan.

Related pages

SSL and TLS

How SSL and its successor TLS encrypt traffic: handshakes, certificates and authorities, free automated certificates and server configuration that passes checks.

Read more

Data security

Protecting information through its life cycle: classification, access control, encryption, logging, retention and deletion, with controls for data on rented servers.

Read more

Hardware security modules

What an HSM is, how it keeps keys from ever leaving tamper-resistant hardware, PKCS#11 and key ceremonies, and the software alternatives on rented servers.

Read more

Private network

Networks that are not reachable from the internet: private address ranges, VLANs, provider private networks and encrypted overlays that connect servers in several cities.

Read more

Questions and answers

How do symmetric and asymmetric encryption compare?

Symmetric encryption uses one shared key for both directions and is fast. Asymmetric encryption uses a public and private key pair and is used to exchange keys and sign data.

Is hashing the same as encryption?

No. Hashing is one-way and cannot be reversed; encryption is reversible with the right key.

Can I encrypt the disks of a rented server?

Yes. Use LUKS or ZFS encryption. A data partition is simplest; encrypting the root file system needs remote unlocking at boot since KVM is not offered.

Does encryption at rest protect a running server?

No. Once unlocked, data is readable by anyone with access to the system. It protects drives that are removed or powered off.

Which encryption algorithms should I use?

AES-256-GCM or ChaCha20-Poly1305 for data, X25519 for key exchange and Ed25519 for signatures, through well-maintained tools rather than custom code.