An encryption algorithm is a recipe that scrambles readable data into gibberish using a secret key, and turns it back only for someone who holds the right key. Well-known examples of encryption algorithms are AES, ChaCha20, RSA and elliptic-curve cryptography (ECC). Your phone, your browser and your Wi-Fi router use several of them every minute without asking you.
The recipe itself is public. Anyone can read how AES works. What keeps your data private is the key, a long random number that only the right people or devices have. Good algorithms are the ones where, without that key, the scrambled data stays useless even to someone with enormous computing power.
Two families, and one look-alike
Almost every encryption algorithm you’ll meet belongs to one of two families.
Symmetric encryption uses one key for both locking and unlocking. It’s fast, so it does the heavy lifting: files, disks, video calls, web pages. The catch is that both sides need the same key, and you have to get it to the other side safely.
Asymmetric encryption (also called public-key encryption) uses a pair of keys. The public key can be shared with the whole world; the private key never leaves its owner. It’s much slower, so it’s mostly used for two jobs: agreeing on a symmetric key over an open network, and making digital signatures that prove who sent something.
Then there’s the look-alike: hashing. SHA-256, bcrypt and Argon2 often appear in lists of encryption algorithms, but they aren’t encryption. A hash is a one-way fingerprint with no key and no way back. That’s exactly what you want for storing passwords, and we explain it in what a password hash is.
Encryption algorithms at a glance
| Algorithm | Type | Where you meet it | Still safe? |
|---|---|---|---|
| AES (128, 192 or 256-bit keys) | Symmetric | HTTPS, Wi-Fi, phone and laptop storage, password managers | Yes. The worldwide default. |
| ChaCha20 (usually with Poly1305) | Symmetric | HTTPS on phones, VPNs such as WireGuard | Yes |
| RSA | Asymmetric | Older website certificates, email signing, software updates | Yes with 2048-bit keys or longer, but on the way out |
| ECC (P-256, Curve25519 and others) | Asymmetric | Modern HTTPS, messaging apps, passkeys | Yes |
| Diffie-Hellman / ECDH | Asymmetric (key agreement) | Setting up almost every secure connection | Yes in its modern forms |
| Twofish | Symmetric | A few disk and file encryption tools | No known practical break, rarely used |
| Blowfish | Symmetric | Old software; lives on inside bcrypt | Not for new designs |
| 3DES (Triple DES) | Symmetric | Old payment and banking systems | Retired |
| DES | Symmetric | History books | Broken |
| SHA-256, bcrypt, Argon2 | Hashing, not encryption | Password storage, file checks, key stretching | Yes, for their own job |
A closer look at each one
AES: the one everything runs on
AES, the Advanced Encryption Standard, was chosen by the US standards body NIST in 2001 after an open public contest. It works on blocks of 128 bits and takes keys of 128, 192 or 256 bits. Even the shortest is far beyond any brute-force search. Modern processors have built-in instructions for it, so it’s very fast.
You’ll often see it written with a “mode”, such as AES-256-GCM. The mode is how AES is applied to data longer than one block. GCM also adds a tamper check, so any change to the scrambled data is noticed and rejected instead of quietly decrypting into nonsense.
ChaCha20: the fast stand-in
ChaCha20 does the same job as AES in a different way. It shines on devices without special AES hardware, which is why it became popular on phones. It’s almost always paired with Poly1305, a tamper check, so you’ll see it as ChaCha20-Poly1305.
RSA: the veteran of public keys
RSA dates from 1977 and rests on how hard it is to split a huge number into its two prime factors. It still protects a lot of the internet, mainly through signatures on certificates and software updates. Keys need to be long, 2048 bits at least, which makes RSA slow and bulky next to newer options.
ECC: smaller keys, same strength
Elliptic-curve cryptography gets the same security as RSA from far shorter keys, using the maths of points on a curve. A 256-bit ECC key is generally considered roughly as strong as a 3072-bit RSA key. Two curves you’ll run into are P-256, a NIST standard, and Curve25519, popular in messaging apps and VPNs. Passkeys are built on this kind of cryptography too.
Diffie-Hellman and ECDH: agreeing on a secret in public
Diffie-Hellman isn’t used to encrypt a message directly. It lets two devices that have never met agree on a shared secret over a network anyone can watch. Neither side ever sends the secret itself. The modern version on elliptic curves is called ECDH, and nearly every HTTPS connection starts with it. The shared secret then becomes the key for AES or ChaCha20.
Twofish and Blowfish: the old rivals
Twofish was a finalist in the contest that AES won. It has no known practical weakness, but almost nobody picked it, so it’s mainly found in a few encryption tools. Its older sibling Blowfish uses small 64-bit blocks, which cause problems when large amounts of data are encrypted under one key, so it shouldn’t be used for new systems. Its key setup survives inside bcrypt, a well-known password hash.
DES and 3DES: retired with honours
DES, from the 1970s, has a 56-bit key, small enough that special hardware cracked it in days back in the late 1990s. Triple DES ran DES three times to stretch its life. NIST withdrew DES long ago and no longer allows 3DES for encrypting data after the end of 2023. If a system still relies on either, it’s overdue for an upgrade.
What your everyday apps actually use
- Websites (HTTPS with TLS 1.3): the browser and the site agree on a key with ECDH, usually on Curve25519, and the page is then encrypted with AES-GCM or ChaCha20-Poly1305. TLS 1.3 dropped the older, weaker choices completely.
- Wi-Fi: WPA2 and WPA3 encrypt your traffic with AES. WPA3 adds a stronger handshake, so a captured connection can’t simply be tested against password guesses offline. Our guide to WPA2 passwords explains what that means for your router.
- Phones and laptops: modern iPhones, Android phones, Macs (FileVault) and Windows PCs (BitLocker or Device Encryption) encrypt stored data with AES, using a key tied to your passcode and the device’s security chip.
- Messaging apps: Signal and WhatsApp use the Signal Protocol, which combines Curve25519 key agreement with AES. Each message gets fresh keys, so one stolen key doesn’t open past conversations.
Rule of thumb: asymmetric algorithms make the introductions, symmetric algorithms do the talking. Almost every secure system you use is that pair working together.
Quantum computers and the new algorithms
A large enough quantum computer could break RSA, ECC and Diffie-Hellman, because it could solve the maths problems they rely on. No such machine exists yet, but data recorded today could be decrypted later, so the switch has already begun.
In August 2024 NIST published its first post-quantum standards: ML-KEM (FIPS 203) for agreeing on keys, and ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures. In 2025 it also picked a backup key method called HQC. NIST’s plan is to phase out RSA and ECC over the next decade, deprecating them after 2030 and disallowing them after 2035.
Symmetric algorithms are in much better shape. Quantum attacks weaken them far less, and AES-256 is expected to stay safe. Several browsers and messaging apps already combine ML-KEM with classic ECDH, so a connection stays protected even if one of the two is ever broken.
How a password manager puts them to work
A password manager is a good real-world example, because it uses several of these tools for different jobs. Take PassHulk, which is built on a zero-knowledge design:
- Argon2id turns your master password into a key on your own device. It’s a slow, memory-hungry key-stretching function, so every guess an attacker makes costs real time and memory.
- AES-256-GCM encrypts each item before it leaves your device. The server only ever stores locked data, and PassHulk staff can’t read your vault.
- Elliptic-curve keys (P-256) handle sharing, so an item can be locked for another person without anyone sending them a secret key in the open.
The result is that a stolen copy of the server’s data is unreadable without each person’s master password. That’s why the master password is the one secret worth making long and unique, ideally a passphrase of several random words. For the bigger picture, see how password managers protect you from data breaches, or browse PassHulk’s features.
Common questions
What is the most secure encryption algorithm?
There isn’t one winner for every job. For encrypting data, AES-256 and ChaCha20 are both considered very strong. For key agreement and signatures, modern ECC is the everyday choice today, with ML-KEM and ML-DSA taking over as protection against quantum computers.
Is AES-256 better than AES-128?
Both are far out of reach of brute force today. AES-256 gives a larger safety margin, especially against future quantum attacks, which is why many security products choose it. The difference in speed is small on modern hardware.
Is SHA-256 an encryption algorithm?
No. SHA-256 is a hash function: it makes a fixed-size fingerprint and can’t be reversed, and there’s no key. It’s used for checking files and building other security tools, but it doesn’t encrypt anything.
What encryption does HTTPS use?
With TLS 1.3, a connection usually starts with ECDH key agreement and certificates signed with ECC or RSA, then encrypts the page with AES-GCM or ChaCha20-Poly1305.



