Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

PSWD Manager

A local-first, end-to-end encrypted password manager.

PSWD Manager stores your logins, secure notes, and generated passwords in an encrypted vault that lives only on your device. There is no backend, no account, no telemetry, and no cloud sync. Nothing you type ever leaves this machine.

Before using this for real sensitive data: please read SECURITY.md and have the code independently audited. This is an open, honest project, not a "military-grade" product. In particular, key derivation uses PBKDF2 (not Argon2id), which is disclosed and explained in the security document.

Features

  • End-to-end encryption, local only. AES-256-GCM for all entries; the vault key is wrapped by a key derived from your master password with PBKDF2-HMAC-SHA-256 (600,000 iterations). See SECURITY.md.
  • Full vault UI. Create, edit, search, sort, filter, and favorite logins and secure notes; custom fields with masked sensitive values.
  • Built-in password generator. CSPRNG-backed with rejection sampling, per-character-class guarantees, and an ambiguous-character filter.
  • Security audit. Flags weak, reused, old, and missing passwords locally, with a summary dashboard and quick-fix navigation.
  • Privacy features. Masked secret fields, reveal-on-demand, clipboard auto-clear, blur-on-blur, and an optional privacy mode.
  • Auto-lock. Lock after Never / 1 / 5 / 15 / 30 / 60 minutes of inactivity, or manually from the sidebar or mobile drawer.
  • Encrypted backup. Export a ciphertext-only backup (gated behind a master-password re-entry) and import it on another device. No plaintext ever leaves the vault.
  • Demo mode. Explore the app with fictional data (demo1234) so you can evaluate it before committing your real credentials.
  • Fully offline. The production bundle makes zero network requests.
  • Responsive and accessible. Works from 360px phones to 1440px+ desktops, with ARIA labels, keyboard support, focus management, and prefers-reduced-motion respected.

Security posture (short version)

  • Master password is never stored, logged, or sent anywhere. There is no password reset path.
  • IndexedDB stores only ciphertext and non-secret metadata. localStorage holds only harmless UI preferences.
  • Unlock failures are deliberately generic ("wrong password or corrupt vault") and are rate-limited after repeated attempts.
  • No network calls, no console logging, and no Math.random() for anything security-sensitive. These are enforced by tests and a static gate.

See SECURITY.md for the full, honest threat model and verification checklist.

Getting started

npm install
npm run dev        # start the Vite dev server
npm run build      # typecheck + production build (dist/)
npm run preview    # preview the production build
npm test           # run the Vitest suite (80+ tests)
npm run typecheck  # tsc -b --noEmit
npm run lint:security  # static security gate over src/

Installation

Grab the latest release with a single command. The installers query the GitHub Releases API, so they always install the current version, no matter which release is out. You never edit them when a new version ships.

Windows (PowerShell)

irm https://raw.githubusercontent.com/Krish-Kamani/pswd-manager/main/install.ps1 | iex

The PowerShell installer detects x86_64, downloads the latest .exe (NSIS) installer from the official GitHub release (.msi as a fallback), verifies its SHA-256 against the release digest, runs it silently, and cleans up. Accept the UAC prompt when it appears.

Debian / Ubuntu (bash)

curl -fsSL https://raw.githubusercontent.com/Krish-Kamani/pswd-manager/main/install.sh | bash

The Linux installer detects Debian vs Ubuntu, verifies the architecture, finds the latest .deb from the official release, verifies its SHA-256, and installs it with apt-get. It refuses to run on unsupported distributions or architectures.

Arch Linux (bash)

curl -fsSL https://raw.githubusercontent.com/Krish-Kamani/pswd-manager/main/install-arch.sh | bash

pswd-manager ships .deb and .rpm packages, not native Arch packages, so the Arch installer builds a proper Arch package on the fly: it downloads the latest official release asset, generates a temporary PKGBUILD, builds it with makepkg, and installs it with sudo pacman -U. Requires base-devel (makepkg/fakeroot) and binutils (ar). Do not run it as root.

What the one-command installers do

[pswd-manager] Detecting operating system...
[pswd-manager] Detecting architecture...
[pswd-manager] Finding latest release...
[pswd-manager] Latest version: v0.1.0
[pswd-manager] Downloading installer...
[pswd-manager] Installing...
[pswd-manager] Installation completed successfully.

Every installer:

  • Always resolves the latest GitHub release - never a hardcoded version.
  • Verifies the download against the release's SHA-256 digest when available.
  • Only downloads assets hosted by the official Krish-Kamani/pswd-manager repository (HTTPS only, no third-party mirrors).
  • Fails safely with a clear message on unsupported OS/architecture, missing assets, download failures, permission failures, or installation failures.
  • Cleans up all temporary files afterwards.

Manual installation

Prefer the one-liners above. If you want to install by hand instead:

  1. Open https://github.com/Krish-Kamani/pswd-manager/releases/latest.

  2. Download the package for your platform:

    • Debian/Ubuntu: pswd-manager_<version>_amd64.deb
    • Fedora/RHEL/openSUSE: pswd-manager-<version>-1.x86_64.rpm
    • Windows: pswd-manager_<version>_x64-setup.exe or pswd-manager_<version>_x64_en-US.msi
    • Arch: install the .deb via the install-arch.sh script or repackage it manually - do not force-install .deb files with pacman.
  3. Install it with your package manager:

    # Debian / Ubuntu
    sudo apt install -y ./pswd-manager_<version>_amd64.deb
    
    # RPM-based
    sudo dnf install ./pswd-manager-<version>-1.x86_64.rpm
    
    # Windows (silent)
    .\pswd-manager_<version>_x64-setup.exe /S
    msiexec /i .\pswd-manager_<version>_x64_en-US.msi /qn

Verify the SHA-256 of anything you download manually against the digest shown on the release page before installing.

First run

  1. Open the app and choose Create a new vault.
  2. Set a master password. PSWD Manager enforces a minimum of 8 characters; use 12-16+ random characters for real use.
  3. Start adding logins and notes, or try Explore with demo data first (password demo1234, all fictional).

Project structure

src/
  components/   UI primitives, layout shell, entry rows, secret fields
  crypto/       AES-GCM cipher, PBKDF2 KDF, CSPRNG, password generator, strength
  database/     Dexie/IndexedDB schema (ciphertext only)
  hooks/        vault context, auto-lock, clipboard, privacy mode, toasts, prefs
  pages/        dashboard, vault list, entry detail/form, audit, generator,
                import/export, settings, first-launch, unlock
  security/     clipboard handling
  types/        core domain types
  utils/        time helpers
  vault/        vault service, encrypted backup, entry helpers, audit logic
tests/          crypto, vault CRUD, backup, entries/audit, security invariants
scripts/        icon check + static security gate

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages