https://github.com/forderud/reversepassword
A Windows Credential Provider written in C#
https://github.com/forderud/reversepassword
Last synced: 12 months ago
JSON representation
A Windows Credential Provider written in C#
- Host: GitHub
- URL: https://github.com/forderud/reversepassword
- Owner: forderud
- License: mit
- Created: 2022-03-24T09:26:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T10:45:04.000Z (almost 2 years ago)
- Last Synced: 2024-08-27T11:57:32.330Z (almost 2 years ago)
- Language: C#
- Size: 243 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Example Windows Credential Provider that require your password to by typed backwards. Written in C#.
## How to test
It's recommended to **test in a disposable Virtual Machine (VM)**, since credential provider problems might break the windows logon screen. You don't want to risk that on your main computer.
Build steps:
* Open solution in Visual Studio and build in release or debug mode.
* Copy `install.reg`, `uninstall.reg`, `REGISTER.bat` and `UNREGISTER.bat` into the same folder as the generated `ReversePassword.comhost.dll`.
Installation steps:
* Install [.NET 8 Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet)
* Right click on `REGISTER.bat` and select "Run as administrator".
* Log screen, log out or restart the computer.
* Observe that there's now a new "RP" sign-in option.

NOTE: You might need to run `CredUITester.exe` with admin privileges if not installed to a folder where all users have read access.
Uninstallation steps:
* Right click on `UNREGISTER.bat` and select "Run as administrator".
## Authentication and logon APIs

* Show authentication dialog: [CredUIPromptForWindowsCredentials](https://learn.microsoft.com/en-us/windows/win32/api/wincred/nf-wincred-creduipromptforwindowscredentialsw)
* Logoff, shutdown or restart: [ExitWindowsEx](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-exitwindowsex)
## Background
The project is heavily based on the no longer maintained [CredProvider.NET](https://github.com/SteveSyfuhs/CredProvider.NET).