> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/products/encryptor/lock-unlock.md).

# Lock and unlock

Lock Encryptor with Logout and unlock it with your password.

{% hint style="info" %}
**Status: Production-ready, stable.** Encryptor is supported; no new features are planned. Last update: 18 Apr 2024 (version 0.1.0).
{% endhint %}

Encryptor only answers apps while it is unlocked. Unlock it when an app asks; lock it when you are done.

## States

```mermaid
stateDiagram-v2
    [*] --> NotInstalled
    NotInstalled --> NotInitialized: Install the extension
    NotInitialized --> Unlocked: Create or restore a key
    Unlocked --> Locked: Logout, or browser session ends
    Locked --> Unlocked: Unlock with your password
```

*Figure: Encryptor states; the SDK maps them to isInstalled, isInitialized, isLocked and isUnlocked.*

## Unlock

1. Open Encryptor. If it is locked you see **Unlock encryptor** with a **Password** field.

{% hint style="info" %}
**Screenshot to capture:** `encryptor--popup--unlock--default--light--360.png`. The Unlock encryptor screen with a dummy password entered (dummy value, never a real password).
{% endhint %}

2. Type your password and select **Unlock** (or press Enter). A wrong password shows **Wrong password** and clears the field.
3. Each time you open the popup, you briefly see a spinner and **Loading...** while Encryptor checks its state. Wait for it to finish.

{% hint style="info" %}
**Screenshot to capture:** `encryptor--popup--loading--default--light--360.png`. The Loading screen with the spinning logo.
{% endhint %}

## Lock

1. When unlocked, the main screen shows **Your Encryptor is ready to use.** Select **Logout**.

{% hint style="info" %}
**Screenshot to capture:** `encryptor--popup--main--logout-control--light--360.png`. The main screen with the Logout control highlighted.
{% endhint %}

2. Encryptor locks and shows the unlock screen. Apps get no public key or shared secret until you unlock again.

## When Encryptor locks by itself

After you close Chrome and open it again, you unlock Encryptor again. See [Security notes](https://wiki.4thtech.io/developers/architecture/security.md).
