bw-pwned

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 3 Imported by: 0

README

bw-pwned

bw-pwned checks the passwords in your Bitwarden vault against the Have I Been Pwned (HIBP) Pwned Passwords database using the anonymous k-anonymous range API.
No passwords are ever sent over the network — only hashed prefixes.

Features

  • Reads login items from the local Bitwarden CLI API
  • Hashes each password (SHA-1 → upper case)
  • Queries the HIBP /range/{prefix} endpoint
  • Compares suffixes and shows breach counts
  • Supports:
    • checking a single item
    • listing all items
    • viewing Bitwarden status
  • Safe/unbreached items are hidden to keep output clean
  • No password data is stored

Prerequisites

  • Bitwarden CLI
    Download: Bitwarden CLI

  • Go 1.24.x (tested) After cloning this repo:

    go mod init
    go mod tidy
    
  • Internet access (for HIBP lookups)

Bitwarden CLI Setup

This app relies on the local Bitwarden CLI API.
You must log in and start the local service.

On Windows:

  1. Download + unzip the Bitwarden CLI

  2. In the extracted folder:

    .\bw.exe login
    .\bw.exe serve
    
  3. (Optional) Check login status:

    .\bw.exe status
    
  4. If you’ve added items and want to re-check:

    .\bw.exe sync
    

Running the app

No need to build — just run it:

go run .

You should see:

Bitwarden → HIBP checker starting...
1. Check status
2. Get single item
3. List all items
Choose an option [1-3]:

Follow the on-screen prompts.

Project Layout

/bitwarden       BW CLI API client logic  
/hibp            SHA-1 hashing + HIBP range lookup  
/models          Shared data structures  
main.go          CLI menu + program flow

License

MIT — see LICENSE file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL