feat: 实现密码加密存储与异步数据预览功能
- 在 Config.cs 中添加 DPAPI 加密支持,确保密码安全存储,兼容旧版配置。 - 更新 MainForm.cs,重构数据预览逻辑为异步方法,提升用户体验,避免界面冻结。 - 修改相关方法以支持异步操作,确保在处理大文件时界面响应流畅。 - 更新项目文件以引用 System.Security,支持加密功能。
This commit is contained in:
@@ -31,6 +31,11 @@
|
||||
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- DPAPI(ProtectedData):config.json 密码加密 -->
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Security" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="config.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
|
||||
Reference in New Issue
Block a user