{"id":25649588,"url":"https://github.com/thomaswening/salter","last_synced_at":"2026-05-18T02:32:57.017Z","repository":{"id":278750026,"uuid":"936648779","full_name":"thomaswening/salter","owner":"thomaswening","description":"Salter is a role-based user management system for the console that securely manages user credentials using encrypted JSON storage.","archived":false,"fork":false,"pushed_at":"2025-03-07T09:17:30.000Z","size":173,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T02:40:06.831Z","etag":null,"topics":["authentication","authorization","csharp","dotnet","encryption","hashing","password-storage","salting","security","user-management"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomaswening.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-21T12:54:27.000Z","updated_at":"2025-03-07T09:17:34.000Z","dependencies_parsed_at":"2025-02-21T14:21:51.254Z","dependency_job_id":"597836bf-99ed-43d3-a8ad-83752df90f12","html_url":"https://github.com/thomaswening/salter","commit_stats":null,"previous_names":["thomaswening/salter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomaswening/salter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaswening%2Fsalter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaswening%2Fsalter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaswening%2Fsalter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaswening%2Fsalter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomaswening","download_url":"https://codeload.github.com/thomaswening/salter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaswening%2Fsalter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["authentication","authorization","csharp","dotnet","encryption","hashing","password-storage","salting","security","user-management"],"created_at":"2025-02-23T14:22:38.277Z","updated_at":"2026-05-18T02:32:57.000Z","avatar_url":"https://github.com/thomaswening.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Salter\n\n**Salter** is a console-based application designed to explore and practice core security concepts in .NET. It is a role-based user management system that securely manages user credentials using encrypted JSON storage. Users can log in or register to perform various operations such as changing their username or password.\n\n![Screenshot of the Main Menu](assets/readme-screenshot.png)\n\n## Features\n\n- **Secure Authentication** – Users must log in to access management features.  \n- **Role-Based Access Control** – User permissions are determined by their role.  \n- **Encrypted User Repository** – All credentials are securely stored using AES encryption.  \n- **Password Security** – Passwords are hashed and salted before being persisted.  \n- **Memory Safety** – Unhashed passwords are stored in **value types** and wiped from memory immediately after use.  \n- **Environment-Based Secret Storage** – Encryption keys are never stored in plaintext.  \n- **Interactive Console Interface** – A command-line menu system for managing users and passwords.  \n\n## Planned Features\n\n- Encryptor using the [.NET Data Protection API (DPAPI)](https://learn.microsoft.com/en-us/dotnet/standard/security/how-to-use-data-protection) \n- Multi-language support  \n\n## How to Build  \n\n### Using Visual Studio\n\n1. Install **.NET 8** (Windows) and **Visual Studio**.  \n2. Clone the repository:  \n   ```sh\n   git clone https://github.com/thomaswening/salter.git\n   ```\n3. Open the solution in Visual Studio and build the project.  \n\n### Using .NET CLI\n\n1. Install **.NET 8 SDK**.  \n2. Clone the repository:  \n   ```sh\n   git clone https://github.com/thomaswening/salter.git\n   ```\n3. Navigate into the project directory and build:  \n   ```sh\n   dotnet build\n   ```\n\n## How It Works  \n\n- On first launch, Salter creates a directory in `%APPDATA%/Salter/`, containing an **encrypted** user repository.  \n- A **default user** (`username: default, password: default`) is created for initial access. It is recommended to change this password immediately.  \n- Users can:  \n  - **Authenticate or register**  \n  - **Use the password hashing utility** (no authentication required)  \n  - **Access user management features** (after authentication)  \n\n### Role-Based Access Control  \n\n- **Users** can modify their own credentials (username and password) or delete their account.  \n- **Admins** can manage users, including creating and deleting accounts and promoting users to admin status.  \n- **The Default User** cannot be deleted or renamed, but they have the exclusive ability to reset the repository or uninstall the application.  \n\n## Uninstall Process  \n\nThe uninstallation process consists of two steps:  \n\n1. **Deleting the application directory**  \n   - The application directory, `%APPDATA%/Salter/`, is deleted first.  \n   - If any errors occur during this step, the user is prompted to delete the directory manually.  \n   - If they confirm, a file explorer window opens at the directory location, and the process continues only after the user verifies deletion.  \n\n2. **Self-deletion of the executable**  \n   - The application cannot delete its own executable directly. Instead, a **cmd process** is started that schedules the deletion via a timeout.\n\n## Logging  \n\n- Errors are displayed in the console with clear messages.  \n- Fatal errors are logged in `%APPDATA%/Salter/` with unique filenames per execution (`error_log_X.txt`).  \n\n## Solution Structure  \n\n### Salter.Core  \n\nHandles the domain logic and core functionality, including:  \n- Contracts for data management  \n- Encryption services  \n- Password hashing  \n- User authentication \u0026 role-based access  \n\n### Salter.Persistence  \n\nManages data storage and encryption, including:  \n- Data Transfer Objects (DTOs)  \n- Encrypted user repository  \n- DTO-to-object mapping  \n\n### Salter.Cmd  \n\nProvides an interactive console interface, including:  \n- User input handling  \n- Console-based menu system  \n- Role-based access enforcement  \n\n## License  \n\nThis project is licensed under the **GNU General Public License v3.0**. See the [LICENSE](LICENSE) file for details.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaswening%2Fsalter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomaswening%2Fsalter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaswening%2Fsalter/lists"}