# Encryption keys

> How MoreVoice encrypts your organisation's data: encryption at rest, a key of your own per organisation for secrets, recordings and files, key rotation, erasure by destroying the key (crypto-shredding), and keys in your own KMS.

Everything MoreVoice stores for you is encrypted at rest, and the most sensitive parts are encrypted by the application itself before they reach the database or storage, with keys the database and the storage provider never see.

## What is encrypted, and how

| What | How |
| --- | --- |
| Recordings, knowledge-base files, audio and other files | Each file gets its own data key; the file is encrypted with AES-256-GCM in chunks, and the data key is wrapped by a master key. The storage provider holds only ciphertext. |
| Secrets you give MoreVoice (SIP passwords, API keys of your integrations, tool headers) | Encrypted with AES-256-GCM under a key derived for your organisation, bound to your organisation's ID, so a value can't be read in another organisation's context. |

## A key of your own

With **per-organisation keys**, your organisation gets its own key-encryption key: everything new written for your organisation (secrets and files) is sealed under it, and older data moves under it as it is read, without a bulk re-encryption. Each key has a version, so it can be rotated: new data uses the new version, and older versions keep their data readable until it is re-wrapped.

Because your data is sealed under your key, **destroying the key erases the data** (crypto-shredding): when your organisation is deleted, its keys are destroyed and its stored files with them, and whatever was sealed under them can no longer be read, copies in backups included.

> **Availability**
>
> Per-organisation keys are switched on per organisation. Ask us to turn them on for yours.

## Keys in your own KMS

> **Coming soon: Bring your own key**
>
> Soon the key that protects your organisation's key can live in your own cloud key-management service (KMS) or HSM: MoreVoice asks it to unwrap your key when it needs it, and you can revoke that access at any time, which makes your data unreadable to MoreVoice. Field-level encryption of transcripts and call summaries comes with it. Talk to us if you need it for a deployment now.

## On dedicated and on-prem installs

A [dedicated](https://docs.morevoice.ai/enterprise/dedicated/) or [on-prem](https://docs.morevoice.ai/enterprise/on-prem/) install has its own master keys, generated for it and held in escrow (on-prem: by you). `STORAGE_KEY` protects every stored file: keep a copy offline, because without it nothing can be read again. Rotating a master key re-wraps the data keys only, so it takes minutes, not a re-encryption of every recording.
