# Keys notice

We use **encrypted storage** to store private keys. The root storage password is a cryptographically strong key derived from the **machine key** plus a **`pin`**, which must be provided every time the accounts store should be accessed. The **`pin`** can be provided via CLI or Environment variable.&#x20;

* [🖥️](https://emojipedia.org/desktop-computer/) **Machine Key** — the storage file can't be decrypted on other machines (*unless your machine is compromised and a hacker has full access to it, and even then, he must listen to your actions - see the next requirement, the **`pin`**)*
* [🔑](https://emojipedia.org/key/) **PIN** — must be provided every time you want to decrypt the storage. This key won't be stored anywhere

This combination of keys makes the storage file safe from various attack vectors.&#x20;

The **pin** is set on the first storage write — *when you add or create an account*. So you must:

* remember the **PIN** - it won't be possible to decrypt the storage without it.
* do not reset the operating system — the **machine key** will be lost and the storage won't be accessible.

> If you forgot the `pin` or the machine key was changed — you can **reset the storage**, and this means - it will be completely cleared.

To summarize: **ALWAYS** back up your keys.


---

# 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://docs.0xweb.org/wallet/keys-notice.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.
