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

# Secrets Management

## Secret Variables

<Info>
  Bruno stores secrets on your local machine. The location depends on the OS.
  The secrets are encrypted using OS level encryption when available or falls back to AES256 encryption.
</Info>

In this approach, you can check the `secret` checkbox for any variable in your environment.
Bruno will manage your secrets internally and will not write them into the environment file.

<img src="https://mintcdn.com/bruno-a6972042/3EAm6Zc0s_0zNYSf/v2/images/screenshots/secret-variables.webp?fit=max&auto=format&n=3EAm6Zc0s_0zNYSf&q=85&s=d8b528e4859034438e3f37fe2f609071" alt="secret variables" width="2984" height="1580" data-path="v2/images/screenshots/secret-variables.webp" />

Your environment file at `environments/local.bru` would look like

```bash local.bru theme={null}
vars {
  url: https://echo.usebruno.com
}
vars:secret [
  jwt-token
]

```

And now you can safely check in your collection to source control without worrying about exposing your secrets.

When you export your collection as a file, Bruno will not export the secret variables.
