Skip to content

Article · 10 min read · Oct 31, 2026

The encryption techniques that matter, and what the industry uses by default

The types of encryption that matter in practice are AES-256-GCM for stored data, TLS 1.3 for traffic, envelope encryption with a cloud key service for data at rest, Argon2id hashing for passwords, and hybrid post-quantum key exchange, which browsers already use. This guide is for operations, IT and finance leaders who need to know the current default for each job and the questions to put to a vendor. Never invent your own cryptography.

Farzan AnsariCofounder and CTO

Key takeaways

  • Symmetric encryption such as AES-256-GCM protects the data itself, and public-key cryptography such as X25519 and Ed25519 lets strangers agree on a key and prove who they are.
  • TLS 1.3 is the default for data in transit, and TLS 1.0 and 1.1 were formally deprecated in 2021.
  • Data at rest is protected by envelope encryption: a data key encrypts the data, and a key in AWS KMS or Azure Key Vault encrypts the data key.
  • Hashing is one-way and is the right tool for passwords, with Argon2id as the first choice from OWASP, while encryption is reversible and is the wrong tool for them.
  • Encryption does not stop an attacker who holds valid credentials, and it does not protect plaintext you send to an AI vendor.

Most encryption decisions in a company are not about choosing an algorithm. They are about confirming that the standard choices are already in place, that a named person owns the keys, and that nobody has built something custom. This guide lists the techniques that matter, the default each one has today, and the questions to ask a vendor. Sources were checked in October 2026.

Which types of encryption matter, and what does the industry use by default?

Use the standard default for each job, and do not design your own. The table covers the techniques you will meet in cloud and AI work.

TechniqueWhat it protectsIndustry default todayWhere you meet itWhat to avoid
Symmetric encryptionBulk data: files, database fields, backupsAES-256-GCM, or ChaCha20-Poly1305 on devices without AES hardwareDisk and database encryption, cloud storageECB mode, DES, 3DES
Key agreementTwo parties agreeing on a secret over an open networkX25519, now paired with ML-KEM in hybrid formThe handshake inside every HTTPS connectionStatic RSA key exchange
Digital signaturesProof of who sent something and that it was not alteredEd25519 or ECDSA, with RSA still commonCertificates, software updates, signed tokensSignatures built on MD5 or SHA-1
Data in transitTraffic between browsers, apps, APIs and servicesTLS 1.3HTTPS, API callsTLS 1.0 and 1.1
Data at restStored files, databases and backupsEnvelope encryption with AES-256 data keys and a key in AWS KMS or Azure Key VaultS3, Azure Storage, managed databasesKeys stored next to the data
Password storageStored login passwordsA slow hash: Argon2id first, bcrypt for legacy systemsLogin systemsReversible encryption, MD5, SHA-1
End-to-end encryptionMessages, from everyone except the two endpointsThe Signal protocolSignal and apps built on itCalling TLS to a server end-to-end
Post-quantumRecorded traffic, against future quantum computersHybrid X25519MLKEM768 key exchange; NIST FIPS 203, 204 and 205Chrome, Firefox, CloudflareHome-made hybrid schemes

Symmetric encryption

Symmetric encryption uses one secret key to scramble data and the same key to restore it. It is fast, so it does the bulk work. In AES-256-GCM, AES is the cipher, 256 is the key length in bits, and GCM is the mode. GCM is authenticated encryption: it scrambles the data and also attaches a tag, so any tampering is detected on decryption. NIST describes it in SP 800-38D as an algorithm for authenticated encryption with associated data, and AWS says all symmetric encrypt commands inside its KMS hardware use AES in Galois Counter Mode with 256-bit keys.

OWASP says authenticated modes should always be used where available, names GCM and CCM as the first preference, and says ECB should not be used outside very specific circumstances. ECB encrypts identical blocks of input to identical output, which leaks patterns.

ChaCha20-Poly1305 is the other common choice. RFC 8439 says ChaCha20 is considerably faster than AES in software-only implementations, around three times as fast on platforms without specialized AES hardware, which is why it appears on older phones and small devices.

Asymmetric (public-key) encryption

Asymmetric cryptography uses a pair of keys: a public key you can hand to anyone and a private key you never share. It solves the problem symmetric encryption cannot, which is how two parties who have never met agree on a secret. It is slower, so it handles the start of a session and signatures, then a symmetric key takes over the bulk work.

RSA and elliptic-curve cryptography are the two families. AWS KMS supports RSA keys of 2048, 3072 and 4096 bits and elliptic curves including NIST P-256 and Ed25519. RFC 7748 defines two curves for key agreement at roughly the 128-bit and 224-bit security levels, and X25519 is the 128-bit one. RFC 8032 defines the EdDSA signature scheme, whose edwards25519 instance is Ed25519. In short, X25519 agrees on keys and Ed25519 signs.

How does TLS 1.3 protect data in transit?

TLS is the protocol under HTTPS. RFC 8446, published in August 2018, says TLS is designed to prevent eavesdropping, tampering and message forgery. TLS 1.3 removed the static RSA and Diffie-Hellman cipher suites, pruned the list of symmetric algorithms of everything considered legacy, and left only authenticated ones.

It also made forward secrecy standard. The RFC says all public-key key exchange mechanisms now provide it, which means a server key stolen next year cannot decrypt traffic recorded this year. The exception is 0-RTT data, a speed feature the RFC says is not forward secret.

The specification has since been reissued. RFC 9846 obsoletes RFC 8446, keeps the TLS 1.3 version number and forbids negotiating TLS 1.0 and 1.1. Those two older versions were formally deprecated in 2021 by RFC 8996.

For a business, the action is concrete. Configure load balancers and API gateways to refuse TLS 1.0 and 1.1 and to prefer 1.3. TLS protects one hop and ends at the server that terminates it, so traffic between your own internal services needs its own TLS.

How does encryption at rest work with AWS KMS and Azure Key Vault?

Both clouds use envelope encryption, which AWS defines as encrypting plaintext data with a data key, and then encrypting the data key under another key. The encrypted data key is stored beside the encrypted data, and the key that wraps it stays in a protected service.

Microsoft's documentation calls the two layers the data encryption key, an AES-256 key that encrypts a block of data, and the key encryption key, which encrypts the data keys and never leaves Key Vault. Bulk encryption stays fast because data keys are used locally, and control stays central because disabling the key encryption key makes dependent data unreadable. AWS adds that its KMS keys never leave FIPS 140-3 Security Level 3 validated hardware security modules unencrypted, so using one means calling the service.

Azure encrypts storage at rest by default with platform-managed keys. Customer-managed keys in Key Vault are optional and, in Microsoft's words, bring extra control at the cost of increased management responsibility and complexity. Most organizations can rely on platform-managed keys, and customer-managed keys make sense when a contract or regulation requires you to control the key lifecycle.

Key management is where real-world problems tend to sit, so it deserves a named owner. The algorithms above are public and heavily reviewed. What goes wrong is more often a key left next to its data, a role that can decrypt more than it should, or a rotation nobody has tried. OWASP advises storing keys in a separate location from encrypted data and having the code and processes to rotate a key in place before the day you need them.

Is hashing the same as encryption?

No. Encryption is reversible by anyone holding the key. A hash is a one-way fingerprint that cannot be turned back into the original. Passwords are the main business use, because a login system only needs to check a guess, never recover the password. OWASP states that passwords should not be stored using reversible encryption.

Password hashing uses deliberately slow functions, and the best of them (Argon2id) also demand memory, so each guess costs an attacker real resources. OWASP's Password Storage Cheat Sheet ranks them this way:

  1. Argon2id is the first choice, at a minimum of 19 MiB of memory, 2 iterations and a parallelism of 1.
  2. bcrypt is for legacy systems, with a work factor of at least 10 and a 72-byte limit on password length.
  3. PBKDF2 with HMAC-SHA-256 at 600,000 iterations is the choice when FIPS-140 compliance is required.

Each password also gets its own random salt, so identical passwords produce different hashes. A practical test for any vendor: if its product can email you your existing password, it stores passwords reversibly.

Fast general-purpose hashes are a separate matter. RFC 6151 says MD5 is no longer acceptable where collision resistance is required, such as digital signatures. NIST announced the retirement of SHA-1 in December 2022, with a phase-out deadline of December 31, 2030, and recommends SHA-2 or SHA-3. NIST's 2017 notice on Triple DES urges all users to migrate to AES, because a 64-bit block cipher risks ciphertext collisions after about 2^32 blocks under one key.

What does end-to-end encryption add, and how does Signal do it?

End-to-end encryption means only the sender's and recipient's devices hold the keys, so the service in the middle cannot read the content. TLS alone does not give you this, because the server at the end of a TLS connection decrypts the traffic.

Signal's published specifications show the pieces. X3DH establishes a shared secret between two parties who authenticate each other with public keys. The Double Ratchet then derives new keys for every message, so earlier keys cannot be calculated from later ones, and Diffie-Hellman results mixed into the chain give some protection to later messages after a compromise. PQXDH is the post-quantum variant of the session setup. In October 2025 Signal announced SPQR, a further ratchet that uses ML-KEM and is combined with the Double Ratchet, and it says conversations will move over without user action.

For most business systems you do not need end-to-end encryption. It has a cost buyers miss: if the provider cannot read the content, neither can its search, its AI summaries or your records archive.

Do you need to act on post-quantum cryptography now?

You need to take stock now and change very little. A large quantum computer could break today's public-key methods, and an attacker can record encrypted traffic now to decrypt later, so key exchange is moving first.

On August 13, 2024, NIST published three standards. FIPS 203 specifies ML-KEM, a key-encapsulation mechanism NIST says is believed secure even against adversaries with a quantum computer. FIPS 204 specifies the ML-DSA signature scheme, and FIPS 205 specifies SLH-DSA, a stateless hash-based signature scheme based on SPHINCS+. NIST's transition report, IR 8547, is listed as final on October 27, 2026.

The practical deployment is hybrid key exchange. X25519MLKEM768 runs the classical X25519 exchange and ML-KEM together, so a session stays protected unless both are broken. Cloudflare reports it enabled by default in Chrome on desktop in March 2024, in Chrome on Android and Firefox on desktop in November 2024, and in Apple's operating systems from October 2025. In the last week of October 2025, Cloudflare said the majority of human-initiated traffic through its network used post-quantum encryption.

For a 20 to 200 person company the work is modest. Keep browsers, TLS libraries and cloud services current, ask vendors for their post-quantum plan, and list where long-lived sensitive data travels. AWS KMS already lists ML-KEM and ML-DSA key specifications, so adoption can come through the provider.

What does encryption not protect against?

Encryption protects data from people who lack the key. It does little against identities the system already trusts.

  • Stolen credentials. A valid login or cloud access key is allowed to decrypt. AWS notes that using a KMS key means calling the service, so any identity with permission to call it gets plaintext back.
  • Plaintext sent to an AI vendor. TLS protects the prompt on its way to the model provider, then the provider decrypts it to process it. Treat what you send as readable by that vendor. The wider controls are covered in data security and governance for AI.
  • Compliance by itself. Encryption helps meet requirements such as those in HIPAA and PCI, and it is not a compliance outcome on its own.

Illustrative example: Consider an 80-person distributor that stores customer contracts in cloud object storage with encryption at rest switched on. A former contractor's access key is never revoked, and the contractor's role is permitted to use the encryption key. When the key is later pasted into a public code repository, the files download in readable form, because the storage service decrypts them for any permitted identity. The encryption worked as designed. The failure was an unreviewed permission, which key-use reviews and short-lived credentials would have caught.

What should you ask a vendor about encryption?

Ask for documentation, not assurances. These questions suit any SaaS, AI or hosting provider.

  1. Which TLS versions do you accept, and are 1.0 and 1.1 disabled?
  2. How is our data encrypted at rest, and are the keys platform-managed or customer-managed?
  3. Which roles and services can use the key, and how often is that access reviewed?
  4. How are keys rotated, and has a rotation been tested on production data?
  5. How do you store passwords? The answer should name Argon2id, bcrypt or PBKDF2, never reversible encryption.
  6. Is our data sent to a model provider in readable form, for how long is it kept, and can it be used for training?
  7. What is your plan for post-quantum key exchange?
  8. Does any part of your product use cryptography you wrote yourself? Anything other than no is a reason to stop. OWASP's section on custom algorithms says only "Don't do this."

How Kastling approaches encryption in cloud and AI projects

Kastling would start by mapping where data lives, who and what touches it, and which systems it moves between, because that decides which controls matter. It would use the encryption services in AWS or Azure, such as KMS and Key Vault, instead of custom code, connect to the systems you already run, and keep a named person in control of decisions about key access. Success is agreed up front, for example that every key-use permission has been reviewed and vendors have answered the questions above in writing. This work sits within AI & Cloud Infrastructure, and the cloud choice itself is covered in AWS or Azure for AI.

Questions

Is AES-256 meaningfully stronger than AES-128?

OWASP recommends AES with a key of at least 128 bits and ideally 256 bits. Both lengths are in current use, and AWS KMS and Azure both use 256-bit keys by default in the services described above. For a business the key length is rarely where an incident starts, so pick 256 when it costs nothing and spend the attention on who can use the key.

Does encrypting our database make us compliant with HIPAA or PCI?

No. Microsoft notes that regulations such as HIPAA, PCI and FedRAMP set out specific safeguards and that some of them require encryption at rest. Encryption is one control among several, and whether your whole setup meets a regulation is a question for your auditor or counsel.

What is the difference between SSL and TLS?

SSL is the name of the older protocol that TLS replaced. The term survives in product labels such as SSL certificate, but modern connections use TLS, and the current version is 1.3. If a vendor says it uses SSL, ask which TLS version it actually negotiates.

Should we encrypt files ourselves before uploading them to the cloud?

Usually not. Cloud storage already encrypts at rest, and Azure documents that this is on by default with platform-managed keys. Client-side encryption, where you encrypt before upload and manage the keys, suits cases where the provider must never see the plaintext. It also means you own key loss, and lost keys mean lost data.

What is a hardware security module?

A hardware security module, or HSM, is a tamper-resistant device that generates and uses keys without letting them out in the clear. AWS says its KMS keys never leave FIPS 140-3 Security Level 3 validated HSMs unencrypted, so every use of a KMS key is a call to the service. Azure Key Vault Managed HSM offers the same idea for Azure.

Sources

  1. NIST: FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard
  2. NIST: FIPS 204, Module-Lattice-Based Digital Signature Standard
  3. NIST: FIPS 205, Stateless Hash-Based Digital Signature Standard
  4. NIST: IR 8547, Transition to Post-Quantum Cryptography Standards
  5. NIST: SP 800-38D, Galois/Counter Mode and GMAC
  6. NIST: NIST Retires SHA-1 Cryptographic Algorithm
  7. NIST: Update to Current Use and Deprecation of TDEA
  8. IETF: RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3
  9. IETF: RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3
  10. IETF: RFC 8996, Deprecating TLS 1.0 and TLS 1.1
  11. IETF: RFC 8439, ChaCha20 and Poly1305 for IETF Protocols
  12. IETF: RFC 7748, Elliptic Curves for Security
  13. IETF: RFC 8032, Edwards-Curve Digital Signature Algorithm (EdDSA)
  14. IETF: RFC 6151, Updated Security Considerations for the MD5 Message-Digest Algorithm
  15. OWASP: Password Storage Cheat Sheet
  16. OWASP: Cryptographic Storage Cheat Sheet
  17. AWS: AWS KMS cryptography essentials
  18. Microsoft Learn: Azure data encryption at rest
  19. Signal: Specifications
  20. Signal: Signal Protocol and Post-Quantum Ratchets (SPQR)
  21. Cloudflare: State of the post-quantum Internet in 2025

Guide · 16 min read

Running AI in production on AWS and Azure: architecture, security, cost and operationsRunning AI in production on AWS or Azure means giving a model the same controls as any business system: identity, secrets, logging, cost limits, fallbacks and a named owner for every operating task. Managed services such as Amazon Bedrock and Azure OpenAI in Microsoft Foundry host the models, but the architecture, data boundaries and day-to-day operations remain your decisions to make and assign. This guide is for IT and operations leaders at companies of roughly 20 to 200 people.Read

Article · 9 min read

How to build a system that handles hundreds of millions of data pointsA high volume data pipeline works in stages: a durable ingestion buffer, stream processing, raw data kept cheaply in object storage as the source of truth, and pre-aggregated rollups that answer the questions people actually ask. The design choice that matters most is deciding those questions first, because they set what you aggregate and how long you keep detail. This guide is for operations and IT leaders at companies of roughly 20 to 200 people who collect sensor, image or event data at volume.Read

Article · 8 min read

How Meta handles billions of requests, and what your company should copyMeta (formerly Facebook) serves its social graph through layers: load balancers, a very large cache, and a sharded MySQL tier behind it. A company of 20 to 200 people should copy the order of operations, which is to measure, index, cache, add read replicas, partition, and shard last, because most never need sharding. This guide explains each technique and when it starts paying off.Read

One useful email a month.

New guides, tools and practical notes on putting AI to work. No sales sequences.

See how an idea becomes a working solution.

Explore how we scope, build and hand over AI projects, with clear decisions at each stage.