> For the complete documentation index, see [llms.txt](https://docs.snowddl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snowddl.com/basic/yaml-tag-decrypt.md).

# YAML tag !decrypt

SnowDDL supports custom `!decrypt` tag in YAML configs. When parser encounters this tag, it decrypts string previously encrypted with [Fernet](https://cryptography.io/en/latest/fernet/) using keys stored in env variable `SNOWFLAKE_CONFIG_FERNET_KEYS`.

It is primarily intended to be used for USER passwords and for SECRETs.

You may read more about config value encryption in [Encrypt user passwords](/guides/other-guides/encrypt-user-passwords.md) guide.

## Example

**user.yaml** config file:

```yaml
john_doe:
  first_name: John
  last_name: Doe
  password: !decrypt gAAAAABmlTWBmENR0wIG2naG3PW8B3Li-9tw2UQAb9yB22V_R-SEEq6Vli5m9-w5_tI3jlftIGxlXxPhsLNMngxnjG6XdySHpQ==
```

**my\_secret.yaml** config file:

```yaml
type: generic_string
secret_string: !decrypt gAAAAABmlTXPlpJotMpEkuH44ptENk_9Uh1k8mqLPdP2Bi_0dJyk1Qdjr36Cq2mvhRpxRRIvuh8X3zYC--sBveOWPEjmKtb2UQ==
```
