---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/security/encryption.md?version=v25.3
  - https://ydb.tech/docs/ru/security/encryption.md?version=v25.3
  - href: en/security/encryption/index.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/security/encryption/index.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Encryption in YDB

YDB provides two main approaches for user data encryption:

* [Data at rest encryption](https://ydb.tech/docs/en/security/encryption/data-at-rest.md?version=v25.3)
* [Data in transit encryption](https://ydb.tech/docs/en/security/encryption/data-in-transit.md?version=v25.3)

It is recommended to use both of them simultaneously in any production environments that handle sensitive data.