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

# InvalidPasswordError: Decryption failed

> Troubleshooting wallet share decryption failure on some Microsoft Edge instances, and how affected users can recover access

```
InvalidPasswordError: Decryption failed
```

Some users might see this error when their wallet fails to unlock or recover, even though their credentials are correct or even if they didn't provide any credentials.

Despite the name, it does not require the optional [Password encryption](/overview/wallets/embedded-wallets/mpc/glossary#password-encryption) feature to have been enabled.

## What causes this

When a new wallet is created, it is encrypted and backed up. If the user was using Microsoft Edge,
it is possible they encountered a bug in the v8 WASM interpreter which caused the encryption to use
a key that was non-deterministic between different version of edge.
When Edge is configured with `Enhance your security` on the web with either **Balanced** or **Strict**,
it would have encountered the bug in the WASM interpreter causing the decryption key to be unrecoverable.
Fortunately, because the bug was deterministic the wallet can be recovered only when using a version of Edge that still has the bug
with enabling Enhance Security.

As a result, the data can only be decrypted in the same setup it was created in. Decryption fails when the user opens their wallet on a different setup.

* A different browser or device (for example, switching from Windows/Edge to Mac/Chrome)
* A version of Edge that has been upgraded since June 4th or version 149+
* The same browser after the **Enhance your security on the web** setting has been disalbed.

This is a known browser inconsistency, not a sign that the wallet data is lost or that the password is wrong.

## Who is affected

Users are affected if, at the time their wallet was first created, they were on:

* Microsoft Edge **version 148 or earlier** on Windows, and
* **Enhance your security on the web** set to **Strict**

<Note>
  Microsoft Edge **149** (released June 2026) resolves this bug. Wallets created on Edge 149 or later are not affected.
</Note>

## How to recover access

To decrypt the wallet, you need to reproduce the **exact environment** it was created in.

<Steps>
  <Step title="Use the original machine">
    Use the same machine where the wallet was originally created, if it is still available. The data is tied to that environment.
  </Step>

  <Step title="Match the Edge version">
    Use the same version of Edge that was used when the wallet was created (or use 145 if you are uncertain which version was originally used).
    The machine has most likely auto-updated to Edge 149 or later, so you will need to downgrade Edge first — see [Install an older version of Edge on Windows](#install-an-older-version-of-edge-on-windows) below.
  </Step>

  <Step title="Reset the browser state before each attempt">
    Log out, clear the site's local storage, and restart the browser tab so any setting change takes full effect.

    <Steps>
      <Step title="Try with Strict mode enabled">
        Go to **Settings > Privacy, search, and services > Security > Enhance your security on the web** and set it to **Strict**, then try to open the wallet again **(Do that in a new tab)**.
      </Step>

      <Step title="Try with the setting turned off">
        If that fails, or Strict mode was already on, turn off **Enhance your security on the web** entirely, reset the browser state again, and try once more.
      </Step>
    </Steps>
  </Step>

  <Step title="Restore Edge to the latest version">
    Once you have recovered access to the wallet, restore Edge to the latest version — see [Restore Edge to the latest version](#restore-edge-to-the-latest-version) below.
  </Step>
</Steps>

### Install an older version of Edge on Windows

Two versions of Edge cannot run side by side, so this procedure downgrades the Edge installation on the machine.

<Accordion title="Downgrade Microsoft Edge on Windows">
  <Steps>
    <Step title="Stop Edge from auto-updating">
      Open Command Prompt **as Administrator** and add a firewall rule that blocks the Edge updater, so Windows does not upgrade Edge back to a newer version:

      ```text theme={"system"}
      netsh advfirewall firewall add rule name="Disable Edge Updates" dir=out action=block program="C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe"
      ```
    </Step>

    <Step title="Download an older build">
      On the [Microsoft Edge for Business download page](https://www.microsoft.com/en-gb/edge/business/download), use the **Channel / Version**, **Build**, and **Platform** (Windows) dropdowns to select **version 148** (or the version used when the wallet was created), then download the Enterprise `.msi` installer. The [Microsoft Update Catalog](https://www.catalog.update.microsoft.com/) is an alternative source for specific builds.
    </Step>

    <Step title="Install the older build">
      In Command Prompt, change to the folder containing the installer and run it with the downgrade flag:

      ```text theme={"system"}
      cd %USERPROFILE%\Downloads
      msiexec /I MicrosoftEdgeEnterpriseX64.msi ALLOWDOWNGRADE=1
      ```
    </Step>

    <Step title="Verify the version">
      Open `edge://settings/help` and confirm Edge is now running version 148 or earlier.
    </Step>
  </Steps>

  <Warning>
    Blocking the updater also blocks Edge security updates. Once you have recovered access to the wallet, follow [Restore Edge to the latest version](#restore-edge-to-the-latest-version) to re-enable updates.
  </Warning>
</Accordion>

<Note>
  If you cannot downgrade Edge on the original machine, try another device that still has Edge 148 or earlier, or use a cloud browser-testing service such as BrowserStack. See this [guide to running an older version of Edge](https://www.browserstack.com/guide/test-old-version-of-edge).
</Note>

## After recovery

After you log in successfully, refresh the page. To confirm the wallet is no longer tied to the affected setup, log in again on a different browser (such as Chrome) and verify your wallet loads without the error.

## Restore Edge to the latest version

If you downgraded Edge to recover your wallet, restore it to the latest version once you have confirmed access. Edge 149 and later are not affected by this bug.

<Steps>
  <Step title="Re-enable Edge updates">
    Open Command Prompt **as Administrator** and remove the firewall rule that blocked the updater:

    ```text theme={"system"}
    netsh advfirewall firewall delete rule name="Disable Edge Updates"
    ```
  </Step>

  <Step title="Update Edge">
    Open `edge://settings/help`. Edge checks for updates automatically and installs the latest version. Restart the browser when prompted.
  </Step>

  <Step title="Verify the version">
    Return to `edge://settings/help` and confirm Edge is now running version 149 or later.
  </Step>

  <Step title="Reinstall the latest build if it did not update">
    If Edge did not update on its own, download the latest build from the [Microsoft Edge for Business download page](https://www.microsoft.com/en-gb/edge/business/download) and install it over the existing version. Then verify the version again at `edge://settings/help`.
  </Step>
</Steps>
