---
title: "Data encryption"
sidebar_position: 10
description: "How to encrypt data stored on Linux servers and in PostgreSQL Managed Databases"
toc_max_heading_level: 3
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# Data encryption

## Cloud and dedicated servers \{#cloud-and-dedicated-servers}

If you are using a server with Linux OS, you can encrypt a disk or a separate partition using the [cryptsetup](https://gitlab.com/cryptsetup/cryptsetup) utility. This utility works with the [dm-crypt](https://en.wikipedia.org/wiki/Dm-crypt) subsystem and the [LUKS](https://en.wikipedia.org/wiki/Linux_Unified_Key_Setup) specification — standard Linux kernel components that are widely used in most popular distributions. dm-crypt is responsible for the encryption process, and LUKS handles key management.

## Managed databases \{#managed-databases}

In PostgreSQL and PostgreSQL TimescaleDB databases, you can encrypt data using the [pgcrypto](https://www.postgresql.org/docs/current/static/pgcrypto.html) extension, which provides a set of cryptographic functions for data protection. More details are available in the [Encrypting Data in PostgreSQL](/managed-databases/postgresql/encrypt-data.mdx).

<Formbricks />
