IsMyPwdSafe
v2.1.1 Install
Password audit / CLI · CI · Python MIT · No account · No telemetry

Audit passwords. Keep them secret.

live output .env / tracked v2.1.1
$ imps scan
✓12DB_PASSWORD92
!13REDIS_PASSWORDweak
·14DATABASE_URLskip
◇18API_KEYtoken
×24PRIVATE_KEYcritical
3 files14 values1 criticalexit 6
0 values printed, stored, or logged.

A privacy-first password audit for the terminal, CI, and Python. Scores locally, checks HIBP without sending the password, and scans .env files without exposing values.

View source

Python 3.8+ · MIT · no account · no telemetry

00values printed
00accounts
05chars to HIBP
MITopen source
Scroll to run
02 / Values-free scan Scroll to redact

Scan the repo.
Keep the secrets.

imps scan finds password-like values in tracked .env files. It reports path, line, key, score, and breach status. The value never enters stdout, stderr, JSON, logs, or annotations.

  1. 01
    Discover

    Tracked .env, .env.*, *.env, and *.env.*. Explicit paths always work.

  2. 02
    Redact

    Values are read, scored, and discarded. Output carries no plaintext.

  3. 03
    Score

    zxcvbn patterns and HIBP k-anonymity. Tokens and keys are labeled, not scored.

  4. 04
    Fail

    Exit 6 on a private key. Exit 4 on engine error. Exit 5 when HIBP is unknown.

.env tracked values hidden
12DB_PASSWORD92
13REDIS_PASSWORDweak
14DATABASE_URLskipped
18API_KEYtoken
24PRIVATE_KEYcritical
path, key, score, breach status. nothing else.
files03
values14
critical01
exit06
03 / Output Sample report. No values.

Read the risk.
Not the secret.

zxcvbn scores the password. IsMyPwdSafe explains why: patterns, feedback, crack time, and breach status in a report that fits on one screen.

Password audit / sample 092engine: zxcvbn-ts
92/100strong
Verdict

No structural patterns found. Not present in HIBP.

Patternsnone found
Breach statusnot pwned
Crack timecenturies
Feedbacknothing to fix
Sample values omitted. The password is never part of the report.
01Strict JSON

Versioned, machine-readable output when you need automation.

02Masked output

Safe for shared terminals, screen recordings, and demos.

03Semantic exits

Fail the job on meaning, not on prose parsing.

Full CLI reference
04 / CI Fail closed. Annotate only metadata.

Fail closed.
Fail clearly.

The GitHub Action has audit and scan modes. It fails on weak, pwned, unknown, or engine-error results, and uploads a values-free JSON artifact even when the job fails.

scan.ymlGitHub Action
- name: Scan repository .env files
  uses: Roma476/IsMyPwdSafe@v2
  with:
    mode: scan
    engine: auto
    min-score: 70
    offline: false
    annotation-limit: 20
    scan-json-artifact: ismypwdsafe-scan
Password never passed as a process argument.
Exit codessemantic
0clean
1below threshold
2usage error
3pwned
4engine unavailable
5HIBP unknown
6critical private key

A missing breach check is never treated as a clean result.

05 / Privacy k-anonymity, not trust.

Only a prefix
leaves.

HIBP uses k-anonymity. IsMyPwdSafe hashes the password locally, sends only the first five SHA-1 characters, and matches the returned suffixes on your machine.

  1. 01Your passwordstays locallocal
  2. 02SHA-1 locallyfull hash never leaveslocal
  3. 035-char prefixthe only thing sentnetwork
  4. 04HIBP rangesuffix list returnsnetwork
  5. 05Match locallyplaintext never returnslocal
Leaves your machine

5-character SHA-1 prefix and the HTTP metadata any request carries.

Never leaves your machine

Plaintext, full SHA-1, password length, character composition, account, or identifier.

No telemetry. No analytics. No accounts. No scan history. A clean HIBP result is not proof that a password is safe.

06 / Surfaces One engine. Three entry points.

One engine.
Three surfaces.

Start in the terminal, add it to CI, or call it from Python. Same scoring, same breach logic, same values-free contract.

01

CLI

Audit one password with a hidden prompt or stdin. Get a readable report, strict JSON, or just an exit code.

imps
imps - < password.txt
imps --json -
02

GitHub Action

Audit a secret or scan the repository. Emit file:line annotations and a values-free JSON artifact.

mode: audit
mode: scan
uses: Roma476/IsMyPwdSafe@v2
03

Python API

Call the audit from your own tooling. Stable exports, typed result objects, and the same JSON schema.

from ismypwdsafe import analyze_password
result = analyze_password(pwd)
07 / Install One command. No account.

Install once.
Audit anywhere.

One command. No account. No telemetry. No values in your logs.

$ pipx install ismypwdsafe

Quick start

$ imps # hidden prompt
$ imps scan # tracked .env files
$ imps scan --offline # no network

Links

Python 3.8+ · MIT · Windows, macOS, Linux