Encryption at Rest vs In Transit: The Difference

Encryption at rest and in transit explained

Encryption at rest protects data while it is stored. Encryption in transit protects it while it moves between systems. Most compliance questions ask about both, because they defend against different attacks.

  • Glossary
  • Data protection

The short answer

Data at rest is data sitting in a database, a disk, an object store or a backup. Data in transit is data moving across a network. At rest is protected by disk or database encryption with managed keys; in transit is protected by TLS. Neither protects data while an authorised application is using it.

Where each one applies

IN TRANSIT · TLS AT REST · STORAGE Browser or mobile app public internet Your app reads plaintext private network Database encrypted on disk Object storage files and uploads Backups the copy most often missed IN USE · NEITHER While your application holds the data in memory it is plaintext. Access control, MFA and DLP are what protect it at that moment.
Swipe to see the full diagram. Blue covers the arrows, where data is moving. Purple covers the boxes on the right, where data is sitting. The third state, in use, is covered by neither.

Encryption at rest

At rest encryption defends against someone obtaining the storage itself: a stolen laptop, a copied snapshot, a decommissioned disk, an exposed backup. Cloud providers offer it as a setting, which is why the real work is key management rather than the encryption itself.

LayerWhat it protects against
Full disk or volumePhysical theft and access to the underlying storage
DatabaseCopies of database files and snapshots taken outside the application
Field levelExposure of specific sensitive columns even to database operators
BackupsThe copy most often forgotten, and most often left readable

The question that follows

Every security questionnaire asks who holds the keys and how often they rotate. Encryption where the same platform stores both the data and an unrotated key protects far less than the checkbox suggests.

Encryption in transit

In transit encryption protects data while it travels. Without it, anyone able to observe the network path, on shared wifi, at an internet provider or inside a compromised network, can read the traffic or alter it.

TLS does the work. When a client connects, the two sides agree on encryption keys and verify the server’s certificate, so the client knows it is talking to the real server and not an impostor. Current practice is TLS 1.2 as the minimum, TLS 1.3 preferred, and SSL along with TLS 1.0 and 1.1 switched off.

ConnectionUsually encrypted?What to check
Browser to your appYesHTTPS enforced everywhere, old TLS versions disabled
App to databaseOften notRequire TLS on the database connection, not just allow it
Service to serviceOften notMutual TLS, so both sides prove who they are
App to third-party APIsYesCertificate validation is actually on, not disabled for convenience

The gap is nearly always internal. External traffic is encrypted because browsers demand it. Traffic between your own services often is not, on the assumption that a private network is safe, which is exactly the assumption zero trust removes.

What frameworks require

FrameworkWhat it expects
PCI DSS v4.0Requirement 3 for stored account data and Requirement 4 for transmission across open networks.
ISO 27001:2022Annex A 8.24 use of cryptography, supported by a documented key management policy.
HIPAAEncryption is an addressable implementation specification, meaning you either implement it or document why an equivalent measure is used.
DPDP Act, 2023Encryption is named among the reasonable security safeguards expected of a data fiduciary.

How Osto covers it

Osto manages the transit side directly: SSL and certificate lifecycle management keeps TLS current across your domains, and the WAF terminates and inspects traffic before it reaches origin. On the storage side, cloud posture management flags unencrypted volumes, databases and snapshots across AWS, Azure and GCP, and file access DLP governs who can reach the data once it is decrypted for use.

Free security assessment

Prove your encryption story to a buyer

Certificate lifecycle management, cloud encryption posture and file access controls, with the evidence mapped for you.

Get a free security assessment Book a platform walkthrough

TLS kept current · Unencrypted storage flagged · One platform, everything

Frequently asked questions

What is the difference between encryption at rest and in transit?

At rest protects stored data on disks, databases, object storage and backups, defending against someone obtaining the storage itself. In transit protects data moving across a network using TLS, defending against interception. Most frameworks require both.

Is encryption at rest enough on its own?

No. Once an authorised application decrypts the data to use it, encryption at rest offers no protection. An attacker with valid application credentials sees plaintext, which is why access control, MFA and data loss prevention sit alongside it.

What is data in use?

The third state: data loaded in memory and being processed. It is not covered by either at rest or in transit encryption. Confidential computing addresses it, but it is rarely required of a startup today.

Which TLS version should we use?

TLS 1.2 as a minimum, with TLS 1.3 preferred, and SSL along with TLS 1.0 and 1.1 disabled. Scanners and security questionnaires both check for the older versions, so leaving them enabled tends to surface quickly.