{"id":34775606,"url":"https://github.com/bibekchandsah/bitlocker-auto-unlock","last_synced_at":"2026-05-21T20:37:18.561Z","repository":{"id":322218586,"uuid":"1088287497","full_name":"bibekchandsah/bitlocker-auto-unlock","owner":"bibekchandsah","description":"A C# Windows Forms application to manage BitLocker-encrypted drives. Features include drive detection, lock/unlock with password or Windows Hello, secure password storage using DPAPI, auto-elevation, system tray integration, and auto-unlock on startup. Built with .NET 6 and PowerShell BitLocker cmdlets.","archived":false,"fork":false,"pushed_at":"2025-11-04T21:00:45.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T19:48:58.271Z","etag":null,"topics":["auto-unlock","bitlocker","bitlocker-drive-encryption","bitlocker-drive-lock","bitlocker-drive-management","bitlocker-lock","drive-encrypt","drive-lock","drive-manager","encryption","open-source","password-manager","windows-hello"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bibekchandsah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-02T17:19:55.000Z","updated_at":"2025-11-04T21:00:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bibekchandsah/bitlocker-auto-unlock","commit_stats":null,"previous_names":["bibekchandsah/bitlocker-auto-unlock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bibekchandsah/bitlocker-auto-unlock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekchandsah%2Fbitlocker-auto-unlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekchandsah%2Fbitlocker-auto-unlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekchandsah%2Fbitlocker-auto-unlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekchandsah%2Fbitlocker-auto-unlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bibekchandsah","download_url":"https://codeload.github.com/bibekchandsah/bitlocker-auto-unlock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekchandsah%2Fbitlocker-auto-unlock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33313867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-unlock","bitlocker","bitlocker-drive-encryption","bitlocker-drive-lock","bitlocker-drive-management","bitlocker-lock","drive-encrypt","drive-lock","drive-manager","encryption","open-source","password-manager","windows-hello"],"created_at":"2025-12-25T08:16:16.015Z","updated_at":"2026-05-21T20:37:18.505Z","avatar_url":"https://github.com/bibekchandsah.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BitLocker Drive Manager\n\nA C# Windows Forms application to check, lock, and unlock BitLocker-encrypted drives.\n\n**Developer:** Bibek Chand Sah\n\n## Features\n\n- **Detect BitLocker Drives**: Shows all drives and their BitLocker protection status\n- **View Drive Details**: Display encryption percentage, lock status, and key protectors\n- **Lock Drives**: Lock BitLocker-protected drives (except OS drive) with force dismount\n- **Unlock Drives**: Unlock drives using password authentication\n- **Process Usage Check**: Check which processes might be using a drive before locking\n- **Secure Password Storage**: Save BitLocker passwords encrypted with Windows Data Protection API (DPAPI)\n- **Windows Hello Authentication**: Uses native Windows Hello biometric authentication (fingerprint, face recognition, PIN) for accessing saved passwords\n- **Password Management**: Save, use, and manage stored passwords with secure authentication\n- **Improved Error Handling**: Better error messages and troubleshooting guidance\n- **Real-time Status**: Refresh drive status and see current encryption state\n- **Auto-Elevation**: Automatically requests administrator privileges on startup\n- **System Tray Integration**: Minimize to system tray with context menu for quick drive operations\n- **Auto Unlock**: Automatically prompts to unlock the last unlocked drive when application opens\n\n## Requirements\n\n- Windows 10/11 with BitLocker support\n- .NET 6.0 or later\n- Administrator privileges (recommended for full functionality)\n- PowerShell BitLocker module (usually pre-installed on Windows)\n\n## How to Run\n\n1. **Build the application:**\n   ```cmd\n   dotnet build\n   ```\n\n2. **Run the application:**\n   ```cmd\n   dotnet run\n   ```\n\n   **Note:** The application will automatically request administrator privileges when launched. If not running as administrator, it will restart itself with elevated privileges through UAC prompt.\n\n## Usage\n\n### Viewing Drive Status\n- The main grid shows all drives with their BitLocker status\n- Columns include: Drive letter, Type, Protection Status, Lock Status, Encryption %, and Key Protectors\n- Click \"Refresh\" to update the drive information\n\n### Locking a Drive\n1. Select a BitLocker-protected, unlocked drive (not the OS drive)\n2. Click \"Lock Drive\"\n3. Confirm the action in the dialog\n4. The drive will be dismounted and locked\n\n### Unlocking a Drive\n1. Select a locked BitLocker drive\n2. **Option A - Manual Password:**\n   - Enter the password in the password field\n   - Click \"Unlock Drive\"\n3. **Option B - Saved Password (for locked drives only):**\n   - Click \"🔐 Use Saved\" to use a previously saved password\n   - Authenticate with Windows Hello (fingerprint, face recognition, or PIN)\n4. The drive will be unlocked and mounted if the password is correct\n\n### Password Management\n1. **Save Password:**\n   - Enter a password for a BitLocker drive\n   - Click \"💾 Save Password\"\n   - Authenticate to securely store the password\n2. **Use Saved Password:**\n   - Select a **locked** drive with a saved password\n   - Click \"🔐 Use Saved\" (only enabled for locked drives)\n   - Authenticate with Windows Hello (fingerprint, face, or PIN) to retrieve and use the stored password\n3. **Manage Passwords:**\n   - Click \"⚙️ Manage Passwords\" to view and remove saved passwords\n   - Remove passwords you no longer need\n\n### System Tray Operations\n1. **Minimize to Tray:**\n   - Close the main window to minimize to system tray\n   - Double-click tray icon to restore window\n2. **Tray Context Menu:**\n   - **Show/Hide**: Toggle main window visibility\n   - **Drive Operations**: Right-click for per-drive lock/unlock options\n   - **Use Saved Password**: Quick unlock with saved passwords\n   - **Exit**: Close application completely\n\n### Auto Unlock Configuration\n1. **Enable Auto Unlock:**\n   - Check \"🔓 Auto unlock last drive when application opens\" in main window\n   - Application remembers the last drive you unlock\n   - Every time you open the application, it checks if that drive is locked\n   - If locked, automatically prompts to unlock the drive\n2. **How it works:**\n   - **With Saved Password**: Uses Windows Hello authentication and unlocks automatically\n   - **Without Saved Password**: Shows password input dialog\n   - **Smart Detection**: Only prompts if the drive is actually locked\n   - **Convenient Access**: Works every time you open the application\n   - **Background Operation**: Can work from system tray without showing main window\n\n## Security Notes\n\n- **Password Storage**: Passwords are encrypted using Windows Data Protection API (DPAPI) and stored locally\n- **Memory Security**: Passwords are handled as SecureString objects in memory\n- **Windows Hello Authentication**: Native Windows Hello biometric authentication (fingerprint, face recognition, PIN) required before saving or retrieving stored passwords\n- **Administrator Privileges**: The application checks for administrator privileges on startup\n- **OS Drive Protection**: OS drives cannot be locked programmatically for safety\n- **Recovery Keys**: Always ensure you have recovery keys before locking drives\n- **Local Storage**: Saved passwords are tied to the current Windows user account\n\n## Technical Implementation\n\nThis application uses:\n- **PowerShell BitLocker cmdlets** via the PowerShell SDK for BitLocker operations\n- **Windows Forms** for the GUI interface\n- **Async/await** patterns for non-blocking operations\n- **Automatic UAC elevation** through application manifest and programmatic restart\n- **PowerShell execution policy bypass** to ensure BitLocker module loads correctly\n- **Proper error handling** and user feedback\n\nThe implementation follows the recommendations from the instructions.md file, using PowerShell cmdlets as the most maintainable approach for BitLocker management.\n\n## Fixes Applied\n\n- **Auto-elevation**: Application automatically requests administrator privileges on startup\n- **PowerShell execution policy**: Bypasses execution policy restrictions for BitLocker module loading\n- **Error handling**: Improved error messages and graceful handling of permission issues","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibekchandsah%2Fbitlocker-auto-unlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbibekchandsah%2Fbitlocker-auto-unlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibekchandsah%2Fbitlocker-auto-unlock/lists"}