> For the complete documentation index, see [llms.txt](https://docs.leather.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.leather.io/get-started/recover-secret-key.md).

# Recover Secret Key with Backup Data

Recover a lost Secret Key from Leather's stored browser data, if you still know your password.

Leather stores your Secret Key encrypted in the browser's extension data. If you lost the written Secret Key but still have that data and your password, you can decrypt the key with Leather's debug page.

This works only while the data exists. Uninstalling Leather or clearing the browser profile deletes it, unless you kept a backup copy of the profile folder.

## Find the stored data

Leather's data sits in a folder named after its extension ID, `ldinpeekobnhjjdofggfgjlcehhmanlj`. In Chrome's default profile the folder is:

* Windows: `%LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Extension Settings\ldinpeekobnhjjdofggfgjlcehhmanlj`
* macOS: `~/Library/Application Support/Google/Chrome/Default/Local Extension Settings/ldinpeekobnhjjdofggfgjlcehhmanlj`
* Linux: `~/.config/google-chrome/Default/Local Extension Settings/ldinpeekobnhjjdofggfgjlcehhmanlj`

Brave and Edge use the same structure under their own application folders. Another browser profile uses its own folder name in place of `Default`.

## Decrypt the Secret Key

1. In the folder, open the files ending in `.log` or `.ldb` with a text editor. Find the values stored as `encryptedSecretKey` and `salt`.
2. In a browser with Leather installed, open `chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/debug.html`.
3. Paste the `encryptedSecretKey` value and the `salt` value into their fields, and enter your Leather password.
4. Click "Decrypt".
5. Write down the Secret Key that appears.

Then restore the wallet with "Use existing key" and secure the new backup. See [Secure Your Secret Key](/wallet-and-security/secure-secret-key.md).

## Related

* [Create a New Wallet](/get-started/create-new-wallet.md)
* [View Secret Key](/get-started/view-secret-key.md)
* [Secure Your Secret Key](/wallet-and-security/secure-secret-key.md)
