Skip to content

Add DPAPI-based password encryption #41

Merged
brandochn merged 2 commits intomainfrom
data-protection
Mar 14, 2026
Merged

Add DPAPI-based password encryption #41
brandochn merged 2 commits intomainfrom
data-protection

Conversation

@brandochn
Copy link
Owner

Add DPAPI-based password encryption service and tests

  • Introduced IPasswordProtectionService interface for encrypting and decrypting sensitive data.
  • Implemented DpapiPasswordProtectionService using Windows DPAPI.
  • Added unit tests for DpapiPasswordProtectionService to ensure encryption, decryption, and fallback behavior.
  • Updated solution to include new LightQueryProfiler.WinFormsApp.UnitTests project.
  • Incremented version to 1.2.0-dev.5 for the WinForms app. ```

Add DPAPI-based password encryption service and tests

- Introduced `IPasswordProtectionService` interface for encrypting and
  decrypting sensitive data.
- Implemented `DpapiPasswordProtectionService` using Windows DPAPI.
- Added unit tests for `DpapiPasswordProtectionService` to ensure
  encryption, decryption, and fallback behavior.
- Updated solution to include new
  `LightQueryProfiler.WinFormsApp.UnitTests` project.
- Incremented version to `1.2.0-dev.5` for the WinForms app.
  ```
Skip test execution for WinForms tests on non-Windows platforms

DPAPI dependency makes these tests Windows-specific.
```
@brandochn brandochn merged commit c3b168d into main Mar 14, 2026
1 check passed
@brandochn brandochn deleted the data-protection branch March 14, 2026 00:33
@brandochn brandochn linked an issue Mar 14, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No password encryption on recent connections

1 participant