Back

Blog details

Encryption at Rest vs in Transit, and What Each Protects

AIOZ Network
7 min readNovember 17, 2026
aioz-storage
AIOZ Storage cover image with the headline Encryption at Rest vs in Transit

Encryption at rest vs in transit comes down to where your data is. Encryption at rest protects stored bytes on disks and backups, and encryption in transit protects bytes crossing a network, usually inside TLS. Each stops a different attacker, and neither covers data while a server is using it.

TL;DR:

  • Encryption at rest protects stored data from anyone who gets the disk, a copied volume or a backup.
  • Encryption in transit wraps each request in TLS, so nobody on the network path can read or change it.
  • Neither stops a caller with valid credentials, and neither covers data in use, while a server holds it in memory.
  • End-to-end encryption moves both jobs to your own machine, and you take on the keys.
  • AIOZ Storage encrypts every object server-side with AES-GCM, and its S3 endpoint accepted only TLS 1.2 and 1.3 in our Oct 29, 2026 check.

This guide goes deeper into the encryption layer of object storage security, and the object storage glossary defines new terms.

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

Encryption at rest protects data while it sits in storage, and encryption in transit protects it while it moves between two systems. Microsoft's Well-Architected guide adds a third state, data in use, meaning data being worked on in memory, and notes that the three protections are often used together.

Encryption at restEncryption in transit
Where the data isDisks, object stores, databases, backupsNetworks between your client and services
Usual technologyAES on a disk, a database file or each objectTLS, which HTTPS runs on
StopsStolen or retired disks, copied volumes, exposed backupsEavesdropping and tampering on the network path
MissesCallers with valid credentialsAnyone at either end of the connection
KeysLong-lived, held by the provider, a key service or youFresh session keys for each connection

Picture a contract you upload from a laptop on hotel Wi-Fi. The upload needs protection in transit. The file then sits on a drive for years, and when that drive is retired, only the at-rest layer protects it.

Diagram of the three states of data on the way to object storage: in transit between your client and the S3 gateway under TLS 1.2 or 1.3, in use in the gateway's memory, and at rest as ciphertext on storage disks, with what encryption in transit and at rest each stop and miss, and where end-to-end encryption fits
The three states of data and what each protection stops and misses. Sources: Microsoft Learn, RFC 8446, RFC 8996, AIOZ Storage docs.

What does encryption at rest protect against?

Encryption at rest protects against anyone who reaches the stored bytes without going through the service. Think of a stolen drive, a disk retired from a rack, a copied volume or a backup in the wrong hands. Microsoft's guide says to encrypt backups to the same level as the source.

You can apply it at several layers. Full-disk encryption covers a whole drive, and transparent data encryption in Azure SQL Database encrypts database files at the page level. Object storage encrypts each object on arrival, which is what server-side encryption means for S3-style services, and Amazon S3 has done this for every new upload since January 5, 2023.

The weak spot is the key. If it sits next to the data, a thief who copies both gets everything, so Microsoft recommends you keep keys apart from the data. A common pattern wraps each data key in a key-encryption key, as our comparison of SSE-S3, SSE-KMS and SSE-C shows. And because the service decrypts for any request it authorizes, encryption at rest does nothing against a leaked access key. That job belongs to access control and scoped credentials.

What does encryption in transit protect against?

Encryption in transit protects against people on the network path: someone on shared Wi-Fi, a compromised router, or anyone who can copy traffic between your app and the storage endpoint. For object storage, that means TLS.

A TLS connection starts with a handshake. The server proves who it is with a certificate, and both sides use public-key cryptography to agree on fresh session keys. After that, a fast symmetric cipher encrypts every record. In TLS 1.3, defined in RFC 8446, every remaining cipher is an authenticated encryption (AEAD) algorithm, so a changed byte makes the record fail rather than slip through. RFC 8996 deprecated TLS 1.0 and 1.1 in 2021, and Microsoft's guide tells you not to go below TLS 1.2.

Protection ends where the connection ends, so a load balancer that terminates TLS sees plaintext. AWS's whitepaper describes layers of transit encryption, from its physical data center links up to TLS in your application. TLS also works only if your client asks for it, and an endpoint written as http:// sends every request in the clear. The HSTS header makes browsers refuse plain HTTP, but an SDK or CLI just uses the scheme you give it. On Amazon S3, AWS recommends a bucket policy that denies requests where aws:SecureTransport is false. And since TLS covers one hop at a time, compare checksums after an upload to confirm the file arrived intact.

Data in use, the state neither one covers

Data in use is data loaded into memory while a program works on it. With server-side encryption, the service decrypts an object to serve your download, so for that moment the plaintext sits in server memory. A memory dump or a compromised server process could read it there.

Access control and isolation limit who can reach that memory. Confidential computing goes further by running code inside a hardware-based, attested trusted execution environment, so even the host can't read it. End-to-end encryption takes a different route and never hands the storage service plaintext at all.

Where end-to-end encryption fits

End-to-end encryption means you encrypt before upload and decrypt after download, on your own machine, so the storage service only ever holds ciphertext. You should still use TLS, because it proves the server's identity and hides request details such as object names.

In exchange, you manage the keys yourself. A lost key means lost data, and features that read your content, such as hosting a website from the bucket, see only ciphertext. Our guide to how AIOZ Storage encryption works covers the passphrase, the key chain and the end-to-end mode.

How AIOZ Storage handles encryption at rest and in transit

For data at rest, our docs say that data sent to AIOZ Storage is encrypted on the server before it is stored on AIOZ DePIN. Each upload is split into segments, and every segment is encrypted with AES-GCM under its own random key. Those keys are stored only in encrypted form, under a key derived from a root secret you create, your bucket passphrase. Reed-Solomon erasure coding then spreads each object across nodes, so a node operator holds encrypted pieces rather than your file.

For data in transit, the docs' CLI examples all use https://s3.aiozstorage.network. When we checked that endpoint on Oct 29, 2026, it completed TLS 1.2 and 1.3 handshakes, refused TLS 1.1, and sent an HSTS header:

$ for v in tls1_1 tls1_2 tls1_3; do echo | openssl s_client -connect s3.aiozstorage.network:443 \
    -servername s3.aiozstorage.network -$v -cipher 'DEFAULT@SECLEVEL=0' 2>/dev/null | grep "^New"; done
New, (NONE), Cipher is (NONE)
New, TLSv1.2, Cipher is ECDHE-ECDSA-AES128-GCM-SHA256
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256

$ curl -s -D - -o /dev/null https://s3.aiozstorage.network/ | grep -i strict-transport
strict-transport-security: max-age=31536000; includeSubDomains

The plain-HTTP port answers too. A request we signed with a made-up key and sent over http:// reached the key check and returned InvalidAccessKeyId, so the server won't turn away a client set to http://. Keep https:// in every endpoint you configure.

For data in use, server-side encryption means data is decrypted on the server before it is sent back to you. The docs offer end-to-end encryption through a self-hosted gateway that is announced but not downloadable: its GitHub repository holds only a README (checked Oct 29, 2026). If the service must never see your plaintext, encrypt files before upload.

What the docs don't cover yet: which TLS versions the endpoint accepts, how traffic between the gateway and storage nodes is protected, an HTTPS-only bucket policy, and customer-managed keys.

For uploads, set two options first. AIOZ Storage rejects uploads without a Content-Length header, which current AWS CLI defaults leave out, and bucket subdomains don't resolve, so requests need path-style URLs (both verified Oct 19, 2026).

# Not run here: no AIOZ credentials on this machine.
export AWS_REQUEST_CHECKSUM_CALCULATION=when_required
aws configure set default.s3.addressing_style path
aws s3 --endpoint-url https://s3.aiozstorage.network cp ./contract.pdf s3://my-bucket/

Next step: the Server-Side and End-to-End Encryption page in our docs explains both modes.

Frequently Asked Questions

Is encryption at rest enough on its own?
No. It protects stored bytes from someone who gets the disk, but the service still decrypts for any valid credential, and the network path still needs TLS.

Is HTTPS the same as encryption in transit?
HTTPS is HTTP over TLS, the usual form of encryption in transit for S3 APIs. Database clients and other protocols use TLS without HTTP.

Does TLS encrypt data at rest?
No. TLS protects data only between two endpoints, and the receiving server holds plaintext after decrypting it.

Which TLS version should you require?
Require TLS 1.2 at minimum and prefer TLS 1.3, since RFC 8996 deprecated TLS 1.0 and 1.1 in 2021.

Does AIOZ Storage encrypt data at rest?
Yes. Every object is encrypted server-side with AES-GCM under per-segment random keys, which are wrapped by a key derived from your bucket passphrase.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

Full vs Incremental vs Differential Backup Types Explained

Full vs incremental vs differential backup: what each run copies, how restore chains work, storage and time trade-offs, synthetic fulls and RPO/RTO fit.

aioz-storage
8 min readDecember 04, 2026
blog thumbnail

RAID vs Erasure Coding: Two Ways to Survive Disk Failure

RAID vs erasure coding: RAID guards the disks of one array, while erasure coding spreads k data and m parity pieces over nodes. Compare overhead and rebuilds.

aioz-storage
9 min readDecember 01, 2026
blog thumbnail

What Is Reed-Solomon Coding? The Math Behind Erasure Codes

Reed-Solomon coding turns k data pieces into n, and any k of them rebuild the original. See the polynomial math, GF(2^8), a demo and how AIOZ Storage uses it.

aioz-storage
7 min readNovember 27, 2026
blog thumbnail

RPO vs RTO Explained, With Backup and Restore Examples

RPO vs RTO: RPO caps how much data you can lose, RTO caps how long you can stay down. See how to calculate both, MTD, and the DR strategies that meet them.

aioz-storage
7 min readNovember 24, 2026
blog thumbnail

What Is AWS Signature Version 4? How S3 Requests Are Signed

AWS Signature Version 4 signs each S3 request with an HMAC key derived from your secret. See the four steps, a worked example and the errors that break it.

aioz-storage
7 min readNovember 20, 2026
blog thumbnail

Encryption at Rest vs in Transit, and What Each Protects

Encryption at rest vs in transit: at rest guards stored bytes from stolen disks, in transit guards requests on the network with TLS. See what each one misses.

aioz-storage
7 min readNovember 17, 2026