Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@
- 只有你本人登录这台电脑的这个 Windows 账号时,程序才解得开。
- 别人就算把配置文件整个拷走,换台电脑也解不开。

::: warning 代价是:换环境就解不开了
下面三种情况,旧的密码数据会失效,需要你重新填一遍。这不是 bug:

1. **重装系统,或换了新的 Windows 账户** —— 旧账户的密钥没了。
2. **用非正常手段重置了 Windows 登录密码**(离线改密、系统修复工具改密等)——正常在系统里改密码没问题,绕过系统改就会丢。
3. **把配置拷到别的电脑或别的 Windows 账户下用** —— 加密数据只在原来那台电脑的原账户下有效。
::: warning 警告
在以下情况下,系统可能无法解密原有数据:

1. **更换或重装系统**
如果您重新安装 Windows 或使用新的电脑账户,原账户的加密密钥将丢失,程序将无法读取旧数据。
2. **删除或重置用户账户密码**
DPAPI 的加密密钥与您的 Windows 登录凭据绑定。
如果您使用非正常方式重置密码(如离线修改、系统修复工具修改等),Windows 无法重新解密旧的加密文件。
3. **复制数据到其他电脑或账户**
DPAPI 加密的数据仅在原账户和计算机上有效。复制配置文件到其他环境时,数据会因密钥不匹配而无法解密。
:::

## 故障排查
Expand Down
16 changes: 10 additions & 6 deletions en/docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ That encryption is tied to your Windows login account, which means:
- The app can only decrypt the data while you are signed in to that Windows account on that computer.
- Even if someone copies the whole config folder, they can't decrypt it on another computer.

::: warning The tradeoff: change environments and it can't be decrypted
In the three cases below, your old credential data stops working and you'll have to enter it again. This is not a bug:

1. **You reinstalled Windows, or switched to a new Windows account** — the key from the old account is gone.
2. **You reset your Windows login password by bypassing Windows** (offline password editors, system repair tools, and the like) — changing your password normally from inside Windows is fine; going around Windows to do it loses the key.
3. **You copied the configuration to another computer or another Windows account** — the encrypted data is only valid under the original account on the original computer.
::: warning Warning
Existing data may fail to decrypt in the following cases:

1. **Changing or reinstalling the system**
If you reinstall Windows or use a new computer account, the encryption key from the original account is lost and the app cannot read old data.
2. **Deleting or resetting the user account password**
DPAPI encryption keys are bound to your Windows login credentials.
If you reset the password abnormally, such as through offline modification or system repair tools, Windows cannot decrypt old encrypted files.
3. **Copying data to another computer or account**
DPAPI-encrypted data is valid only on the original account and computer. Data copied to another environment cannot be decrypted if the key does not match.
:::

## Troubleshooting
Expand Down