> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Encryption at rest

> Choose between built-in AES encryption and custom encryption handlers for Agent Server data.

Agent Server supports two approaches to application-level encryption at rest. Use built-in AES encryption unless you need per-tenant keys or an external key management system.

## Choose an encryption approach

> [card] [Built-in AES encryption](https://docs.langchain.com/langsmith/aes-encryption.md)
>
> Recommended for most deployments. Configure an AES key to encrypt checkpoint data and selected JSON fields. Supports lazy key rotation.

> [card] [Custom encryption](https://docs.langchain.com/langsmith/custom-encryption.md)
>
> Use only when built-in AES does not meet your requirements. Supports per-tenant keys and external key management systems through custom handlers.

Choose [built-in AES encryption](https://docs.langchain.com/langsmith/aes-encryption.md) if you need:

* One encryption key for the deployment
* Key rotation
* Selective encryption of JSON fields

Choose [custom encryption](https://docs.langchain.com/langsmith/custom-encryption.md) only if you need:

* Different encryption keys for different tenants
* An external key management system
* Custom encryption logic or audit behavior

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/encryption.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
