# Amnesia — local launcher edition A Windows WPF / C# Visual Studio project with a dark purple interface, local account creation and login, encrypted Remember Me, dashboard, and persistent preferences. ## Open and run 1. Extract this entire ZIP to a folder. 2. Open **Amnesia.sln** in Visual Studio 2022 (17.8 or newer) with the **.NET desktop development** workload and **.NET 8 SDK** installed. 3. Allow NuGet to restore System.Security.Cryptography.ProtectedData, then press **F5**. 4. Choose **New here? Create an account**, use a username (3–24 letters, digits, underscores) and a unique password (8–128 characters). 5. Sign in. In Settings, browse to an installed Minecraft Launcher or your own client launcher `.exe`, then Save changes. There are no preconfigured credentials. Accounts belong to this Windows user on this PC. This is a source project, not a prebuilt EXE. ## Features - Custom borderless window with draggable title bar, minimize, close, rounded controls, focus rings, and fade transitions. - Your requested base, surface, raised, foreground, muted, accent, hover, and border colors. - Salted PBKDF2-HMAC-SHA256 password hashes (600,000 iterations); no plaintext passwords saved. - Remember Me restores a local session for 30 days. Windows DPAPI protects the session for the current Windows user. Unchecked successful sign-in removes the saved session; Sign out clears it. - Local login retry delay; account creation and password verification run off the UI thread. - Persistent executable selection, minimize after launch, reduced motion, and 85–100% window opacity. Cancel discards pending changes; Reset defaults is applied only after Save. - Open launcher starts the executable chosen by the user; it does not download or install Minecraft. ## Scope This is a functioning **local launcher account system**, not an online authentication service. It does not sign into Microsoft/Mojang, grant game ownership, inject a client, or provide multiplayer account validation. The chosen Minecraft launcher handles game authentication and launching. No Amnesia game client binaries were supplied or included. Local accounts are a convenience boundary, not protection against someone who controls the same Windows account or edits the app and its files. For a public multi-user service, replace LocalStore with a server authentication API, expiring/revocable session tokens, and Microsoft OAuth through the supported Minecraft flow. Never collect Microsoft passwords in this form. ## Data and customization Data lives at `%LOCALAPPDATA%\Amnesia`: accounts.json, session.bin, preferences.json. Treat these files as private. To completely reset local accounts and preferences, close the app and remove that folder (this deletes all local Amnesia accounts). - `Amnesia/App.xaml`: palette and reusable styles. - `Amnesia/MainWindow.xaml`: login, dashboard, settings UI. - `Amnesia/MainWindow.xaml.cs`: navigation and UI behavior. - `Amnesia/Services/LocalStore.cs`: account hashing, encrypted sessions, persistence. The UI uses Segoe UI Variable with Segoe UI fallback, so no font download is needed. All visuals are vector geometry. ## Build / publish In a terminal with the .NET 8 SDK: ```powershell dotnet build Amnesia.sln -c Release dotnet publish Amnesia/Amnesia.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true ``` Find the executable in `Amnesia\bin\Release\net8.0-windows\win-x64\publish`. ## Verification XML/project structure, event-handler wiring, and archive contents were checked in the generation environment. A Windows/.NET build and visual run were not available there. Run the following smoke checks in Visual Studio before distribution: 1. Create an account; reject duplicate usernames and passwords shorter than eight characters. 2. Sign out, then verify wrong passwords fail and the correct password succeeds. 3. Sign in with Remember Me checked, close/reopen, and confirm the dashboard returns. 4. Sign out, reopen, and confirm the login form returns. Repeat with Remember Me unchecked. 5. Save preferences and reopen; confirm they persist. Verify Cancel leaves saved settings unchanged. 6. Select an installed launcher, launch it, and verify the minimize preference. 7. Test keyboard Tab/Space/Enter, reduced motion, and Windows display scaling.