---
title: encryption
sidebarTitle: encryption
---

# `prefect.server.utilities.encryption`



Encryption utilities


## Functions

### `encrypt_fernet` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/encryption.py#L40" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
encrypt_fernet(session: AsyncSession, data: Mapping[str, Any]) -> str
```

### `decrypt_fernet` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/encryption.py#L46" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
decrypt_fernet(session: AsyncSession, data: str) -> dict[str, Any]
```
