---
title: "Encryption"
url: https://www.daytona.com/definitions/e/encryption
---

# Encryption

Encryption scrambles data with a key so that only someone holding the right key can read it.

Encryption turns readable data into scrambled data, using a key, so that anyone without the key sees only noise. Decryption reverses this with the right key. Symmetric encryption uses one shared key for both steps and is fast. Public-key encryption uses a pair of keys and is used mainly to agree on a shared key and to prove identity.

Encryption protects data in two main states. Encryption in transit protects data as it crosses a network, most often with TLS. Encryption at rest protects data stored on disks and in backups, in case the storage is lost or copied. In both cases the data is only as safe as its keys, so keys are stored and rotated separately from the data.

Sandboxes send and store data that can include code, credentials and customer files. A platform encrypts the traffic between clients, its control plane and its hosts. It also encrypts the disks, snapshots and volumes that hold sandbox data. Encryption does not protect data while a running program uses it, so isolation between sandboxes still matters.

## Related terms

- [CPU type](https://www.daytona.com/definitions/c/cpu-type.md)
- [DPU (Data Processing Unit)](https://www.daytona.com/definitions/d/dpu-data-processing-unit.md)
