Back to Prefect

encryption

docs/v3/api-ref/python/prefect-server-utilities-encryption.mdx

3.6.30.dev3675 B
Original Source

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]