# Data

> Where your realm's data lives, how it is sealed, and how long it is kept.

Every record the realm keeps belongs to that realm alone, so one realm's data never appears in another's answers.
The most sensitive of it is sealed under the realm's own storage key; passwords and secrets are kept only as one-way
hashes. What expires is cleared by itself, and what is a record, the audit trail above all, is kept for the life of
the realm. Nothing yet keeps a backup to restore from: see what's coming next.

<CardGrid>
  <LinkCard title="Encryption of stored data" description="What is sealed, what is hashed, and how to seal a field of your own." href="/platform/data/encryption/" />
  <LinkCard title="Retention and clean-up" description="What is cleared on its own, and what is kept." href="/platform/data/retention/" />
</CardGrid>

## Capabilities

### Keep it apart

| Capability | What it gives you |
|---|---|
| Realm-scoped storage | Every record belongs to one realm, and is answered only within it |
| [A copy at every site](/platform/sites/multi-site-realms/) | Each site holds the realm's data, so losing one loses nothing |

### Protect it

| Capability | What it gives you |
|---|---|
| [Encryption of stored data](/platform/data/encryption/) | Sign-ins, held tokens and sensitive fields sealed under the realm's storage key |
| [Fields of your own, sealed](/platform/data/encryption/#set-it-up) | Mark a field `x-encrypt` or `x-hash` and it is sealed or hashed on every write |
| [One-way hashes](/platform/data/encryption/#how-it-works) | Passwords and client secrets never stored, only hashed |

### Keep it for as long as it's needed

| Capability | What it gives you |
|---|---|
| [Automatic clean-up](/platform/data/retention/) | Expired sessions, lockouts, codes and shares cleared every five minutes |
| [A deleted realm, purged on request](/platform/data/retention/#a-deleted-realm) | A deleted realm's data and keys kept until you ask for them to be destroyed |
| [Audit trail kept](/platform/data/retention/#how-it-works) | The trail kept for the life of the realm |

## Coming next

See [What's next for data](/platform/data/whats-next/):

- [Backups](/platform/data/whats-next/#backups): point-in-time copies to restore from.

## Guides

- [Shred a realm's secrets](/secrets-store/guides/shred-a-realms-secrets/)
