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

# Custom Master Key

For compliance or backup purposes, you can provide your own master key:

```bash theme={null}
# Generate a key
openssl rand -base64 32

# Use during init
kfl init --master-key "K7gNU3sdo+OL0wNhqoVWhr3g6s1xYv72ol/pe/Unols="
```

<Note>
  If `MASTER_KEY` already exists on the worker, the provided key is ignored. This prevents accidental data loss from key rotation.
</Note>

<h2 noAnchor>Next Steps</h2>

<CardGroup cols={2}>
  <Card href="/guides/security-and-backup" title="Security & Backup">
    Back up your master key and define your recovery strategy.
  </Card>

  <Card href="/architecture/encryption" title="Encryption Details">
    Understand how the master key is used to encrypt your secrets.
  </Card>
</CardGroup>
