# Wallet Encryption

Encrypting your wallet.dat file will require that you enter a password in order to send any XDN. It is also a requirement if you wish to stake your XDN directly from your own wallet.&#x20;

Although you can perform this action at any time, it is recommended that you do it immediately upon starting a new xdn-qt wallet and before generating/using any receive addresses. Encrypting your wallet.dat file also changes your master seed, so any backups you created before encryption **WILL NOT** backup addresses you've created/generated after encryption.

From the Settings menu, select "Encrypt Wallet..." to begin the process of encrypting your wallet.dat file.

![Select "Encrypt Wallet..." from the Settings menu](/files/-MGRr-zzfpX6_Z7Jl-uP)

![Choose a very strong passphrase](/files/-MGRrmnmqqMVmElv1UDp)

![Confirm that you wish to encrypt your wallet](/files/-MGRs9byRTQM3DitU6k8)

{% hint style="info" %}
**NOTE:** After confirming you wish to encrypt your wallet, it may take a few moments to apply the encryption.
{% endhint %}

![](/files/-MGRtjHS3J3tSdm5bGNL)

Clicking OK on the final dialog box will close the wallet. The next time you open it you will be required to use your passphrase in order to send or stake your XDN, so do not lose it!

## Changing the QT Wallet passphrase <a href="#changing-the-qt-wallet-passphrase" id="changing-the-qt-wallet-passphrase"></a>

Once your wallet is encrypted, you can later change the passphrase if you wish. From the Settings menu, select "Change Passphrase..."

Make sure to replace your old wallet backups with the new one.

![Select "Change Passphrase..." from the Settings menu](/files/-MGRuqb1S9N_cbVCCkpS)

![Fill in your current passphrase and choose a new one](/files/-MGRuw71V0vZAZ8GIS0q)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.digitalnote.org/wallet-functionality/qt-wallet/backup-and-security/wallet-encryption.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
