From 3d87d2a0559f265bdb9cdebc971dea77081ddc96 Mon Sep 17 00:00:00 2001 From: 1w1w11w1 <1252530896@qq.com> Date: Thu, 27 Aug 2026 13:29:36 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=9B=9E=E9=80=80=20FAQ=20=E4=B8=AD?= =?UTF-8?q?=E8=A2=AB=E8=AF=AF=E6=94=B9=E7=9A=84=20DPAPI=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AE=89=E5=85=A8=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/FAQ.md | 16 ++++++++++------ en/docs/FAQ.md | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index 5145edd..984d13c 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -20,12 +20,16 @@ - 只有你本人登录这台电脑的这个 Windows 账号时,程序才解得开。 - 别人就算把配置文件整个拷走,换台电脑也解不开。 -::: warning 代价是:换环境就解不开了 -下面三种情况,旧的密码数据会失效,需要你重新填一遍。这不是 bug: - -1. **重装系统,或换了新的 Windows 账户** —— 旧账户的密钥没了。 -2. **用非正常手段重置了 Windows 登录密码**(离线改密、系统修复工具改密等)——正常在系统里改密码没问题,绕过系统改就会丢。 -3. **把配置拷到别的电脑或别的 Windows 账户下用** —— 加密数据只在原来那台电脑的原账户下有效。 +::: warning 警告 + 在以下情况下,系统可能无法解密原有数据: + + 1. **更换或重装系统** + 如果您重新安装 Windows 或使用新的电脑账户,原账户的加密密钥将丢失,程序将无法读取旧数据。 + 2. **删除或重置用户账户密码** + DPAPI 的加密密钥与您的 Windows 登录凭据绑定。 + 如果您使用非正常方式重置密码(如离线修改、系统修复工具修改等),Windows 无法重新解密旧的加密文件。 + 3. **复制数据到其他电脑或账户** + DPAPI 加密的数据仅在原账户和计算机上有效。复制配置文件到其他环境时,数据会因密钥不匹配而无法解密。 ::: ## 故障排查 diff --git a/en/docs/FAQ.md b/en/docs/FAQ.md index e350f85..0cf050c 100644 --- a/en/docs/FAQ.md +++ b/en/docs/FAQ.md @@ -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