{"id":18725607,"url":"https://github.com/evanhei/filelocker","last_synced_at":"2026-05-07T11:31:22.752Z","repository":{"id":224640456,"uuid":"754445796","full_name":"EvanHei/FileLocker","owner":"EvanHei","description":"A Windows desktop app for cryptographically protecting files.","archived":false,"fork":false,"pushed_at":"2024-10-12T20:09:42.000Z","size":1753,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T18:48:59.146Z","etag":null,"topics":["asymmetric-cryptography","csharp","cybersecurity","desktop-app","dotnet","message-authentication-code","symmetric-cryptography","windows","x64"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvanHei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-02-08T04:09:12.000Z","updated_at":"2024-07-15T02:23:43.000Z","dependencies_parsed_at":"2024-03-28T02:31:17.445Z","dependency_job_id":"225938a3-8014-45c2-a707-4b9e385202ba","html_url":"https://github.com/EvanHei/FileLocker","commit_stats":null,"previous_names":["evanhei/filelocker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/EvanHei/FileLocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanHei%2FFileLocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanHei%2FFileLocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanHei%2FFileLocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanHei%2FFileLocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvanHei","download_url":"https://codeload.github.com/EvanHei/FileLocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanHei%2FFileLocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["asymmetric-cryptography","csharp","cybersecurity","desktop-app","dotnet","message-authentication-code","symmetric-cryptography","windows","x64"],"created_at":"2024-11-07T14:11:02.704Z","updated_at":"2026-05-07T11:31:22.707Z","avatar_url":"https://github.com/EvanHei.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileLocker\n\nA Windows desktop app for cryptographically protecting files using symmetric and asymmetric techniques.\n\n## Table of Contents\n\n1. [Getting Started](#getting-started)\n2. [Guide](#guide)\n3. [Technologies](#technologies)\n4. [Security Features](#security-features)\n\n## Getting Started\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRun from executable\u003c/strong\u003e\u003c/summary\u003e\n\n1. Download [FileLocker.exe](https://github.com/EvanHei/FileLocker/releases/download/v1.0.1/FileLocker.exe) (SHA256 below)\n\n   ```SHA256\n   af609e3f97af864e44cdee241bad2fe951c7758d2393b2226c9b0f5724b4df53\n   ```\n\n2. Double-click FileLocker.exe, click \"More info\", and then click \"Run anyway\". This prompt will disappear the next time FileLocker is run.\n\n   \u003cimg src=\"./images/MoreInfo.png\" width=\"350\"\u003e\u003cimg src=\"./images/RunAnyway.png\" width=\"350\"\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRun from source code\u003c/strong\u003e\u003c/summary\u003e\n\n1. Download the .NET SDK from Microsoft's website \u003ca href=\"https://dotnet.microsoft.com/download\"\u003e here\u003c/a\u003e or verify installation by running the following command:\n\n   ```bash\n   dotnet --version\n   ```\n\n2. Navigate to FileLocker/WinFormsUI/ and launch with the following command:\n\n   ```bash\n   dotnet run\n   ```\n\n\u003c/details\u003e\n\n## Guide\n\n### Dashboard Form\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eSummary\u003c/strong\u003e\u003c/summary\u003e\nThe Dashboard Form displays files added to FileLocker's scope, allows addition of files, provides a key generation service, and log navigation feature.\n\n- **Guide 📖**: opens the GitHub repository in the default browser.\n- **Keys 🔑**: displays the key panel.\n- **Logs 📜**: displays the log panel.\n- **Add ▼**: shows dropdown options to add files to the scope by manually selecting or importing an archive.\n- **File List**: right click on a file to display options or drag and drop files onto the list to add them.\n- **Search Box**: filters files based on the search query. Filter by file type by searching `.txt` or `.png`, or filter by algorithm by searching `.aes` or `.3des`.\n\n\u003cimg src=\"./images/DashboardForm_NoFilesPanel.png\" width=\"1000\"\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eLocked File Panel\u003c/strong\u003e\u003c/summary\u003e\nA locked file can be decrypted, shredded, shown in File Explorer, or exported.\n\n- **📋 Path**: copies the path to the clipboard.\n- **📋 SHA**: copies the SHA to the clipboard.\n- **Decrypt 🔑**: opens the Decrypt Form.\n- **Shred 🗑️**: shreds the file by overwriting its contents with random data and then deleting.\n- **Explorer 📁**: launches File Explorer with the file selected.\n- **Export 📤**: exports the file to a .zip archive.\n\n\u003cimg src=\"./images/DashboardForm_LockedPanel.png\" width=\"1000\"\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUnlocked File Panel\u003c/strong\u003e\u003c/summary\u003e\nAn unlocked file can be encrypted, shredded, or shown in File Explorer.\n\n- **📋 Path**: copies the path to the clipboard.\n- **📋 SHA**: copies the SHA to the clipboard.\n- **Encrypt 🔐**: opens the Encrypt Form.\n- **Shred 🗑️**: shreds the file by overwriting its contents with random data and then deleting.\n- **Explorer 📁**: launches File Explorer with the file selected.\n\n\u003cimg src=\"./images/DashboardForm_UnlockedPanel.png\" width=\"1000\"\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eMoved/Deleted File Panel\u003c/strong\u003e\u003c/summary\u003e\nAn moved or deleted file can be relocated or removed from scope.\n\n- **Relocate**: find the moved file.\n- **Remove**: remove file from scope.\n\n\u003cimg src=\"./images/DashboardForm_RelocationPanel.png\" width=\"1000\"\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eKeys Panel\u003c/strong\u003e\u003c/summary\u003e\nKeys pairs can be created and public keys can be imported.\n\n- **Create**: opens the Create Key Pair Form.\n- **Import**: imports a selected public key archive.\n- **Key Lists**: right click on a key to display options.\n\n\u003cimg src=\"./images/DashboardForm_KeysPanel.png\" width=\"1000\"\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eLogs Panel\u003c/strong\u003e\u003c/summary\u003e\nLogs can be viewed and navigated using the various filters.\n\n- **Level**: filter by log level.\n- **All time**: display all logs.\n- **Last Month**: display logs within the last month.\n- **Last Week**: display logs within the last week.\n- **Last Day**: display logs within the last day.\n- **Search Box**: filters logs based on the search query.\n\n\u003cimg src=\"./images/DashboardForm_LogsPanel.png\" width=\"1000\"\u003e\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eEncrypt Form\u003c/strong\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/EncryptForm.png\" width=\"400\"\u003e\n\nThe Encrypt Form allows encryption by choosing an industry-standard encryption algorithm such as AES or 3DES and providing a strength-enforced password. Password fields are cleared after 30 seconds of inactivity.\n\n- **Generate Random**: generates a random password that satisfies the strength policy.\n- **Clear**: erases both password fields.\n- **→**: encrypts the file with the provided password. If lost, the file cannot be decrypted. FileLocker maintains a zero-knowledge policy.\n- **👁**: shows or hides the password fields.\n\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eDecrypt Form\u003c/strong\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/DecryptForm.png\" width=\"400\"\u003e\n\nThe Decrypt Form allows decryption by providing the encryption password. Password field is cleared after 30 seconds of inactivity.\n\n- **→**: decrypts the file with the provided password, if correct.\n- **👁**: shows or hides the password fields.\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eImport Form\u003c/strong\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/ImportForm.png\" width=\"400\"\u003e\n\nThe Import Form allows an import of a .zip archive.\n\n- **Open**: choose a .zip archive.\n- **Save To**: the location where the file will be saved.\n- **Import**: loads the archive and saves the file to the chosen location.\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCreate Key Pair Form\u003c/strong\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/CreateKeyPairForm.png\" width=\"400\"\u003e\n\nThe Create Key Pair Form allows creation of a public/private key pair.\n\n- **Generate Random**: generates a random password that satisfies the strength policy.\n- **Clear**: erases both password fields.\n- **→**: creates the key pair and encrypts the private key with the provided password. If lost, the key cannot be used to sign. FileLocker maintains a zero-knowledge policy.\n- **👁**: shows or hides the password fields.\n\n\u003c/details\u003e\n\n---\n\n## Technologies\n\n- **OS**: Windows\n- **IDE**: Visual Studio\n- **Programming Language**: C#\n- **Framework**: .NET\n- **UI**: Windows Forms\n- **Version Control**: Git / GitHub\n- **Algorithms**: AES, 3DES, HMACSHA256, PBKDF2, RSA, ECDSA\n- **Logging**: Serilog\n- **Unit Testing**: xUnit\n\n## Security Features\n\n- **Confidentiality**: AES and 3DES encryption.\n- **Integrity**: HMAC integrity checks of stored and transmitted data.\n- **Password Strength Policy**: strong passwords mitigate brute-force attacks.\n- **Password Generation**: passwords generated without the need to manually type, mitigating the effect of keystroke logging malware.\n- **Password Management**: password inputs cleared after a set time if the device is left running.\n- **Password-Based Key Derivation**: encryption keys derived from passwords.\n- **Logging**: important events logged such as encryption and decryption.\n- **Constant-Time Comparison**: libraries use constant-time comparison to mitigate timing attacks.\n- **File Shredding**: files deleted without leaving traces by overwriting with random data.\n- **SOLID Principles**: facilitate quick code updates in the case of a new exploit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanhei%2Ffilelocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanhei%2Ffilelocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanhei%2Ffilelocker/lists"}