PassForge is a complete password toolkit for the browser and Node.js. Add one file and you get a secure generator, a strength checker, a 2FA (TOTP) engine and more, with no dependencies and no build step. It comes with a ready-made Password Builder app you can open in any browser.
WHY IT IS DIFFERENT
Honest numbers: every generated password and passphrase reports the entropy it really has in bits, computed exactly where possible. Random numbers come only from the browser's secure generator (crypto.getRandomValues), with no Math.random fallback and no modulo bias.
Password rules your way: length, groups, own symbols, no look-alike characters, minimum per group, no repeats, no sequences, must start with a letter, forbidden words such as the user's name. The password is chosen uniformly among all passwords that obey the rules.
Site rules support: paste the rules a website publishes (Apple "passwordrules" format) and get a matching password, a checker that explains what is wrong, and ready-made HTML attributes (minlength, maxlength, pattern) for your own sign-up form.
Strength checker: pattern-aware estimate (leaked passwords, English words and names, keyboard runs, repeats, dates, look-alike substitutions, diceware phrases) with crack-time for four attacker types, warnings and suggestions. Personal words can be penalised.
Policy checker: presets for basic, PCI-style, NIST-style (length first, no composition rules) and strict, or your own policy object, with a list of problems.
Passphrases: EFF Large Wordlist (7776 words), choice of separator, capitalisation and number.
Two-factor codes: TOTP and HOTP (SHA-1/256/512, 6-10 digits) checked against the RFC test vectors, otpauth:// link builder and parser, code verification with time window, and recovery codes.
Derived passwords: the same master secret + site + counter always gives the same password, so nothing is stored or synced (PBKDF2-HMAC-SHA256, 210,000 iterations).
API keys with a built-in checksum (typos and fake keys are rejected without a database lookup), UUID v4 and v7, PINs without weak patterns, pronounceable passwords, tokens (hex, base32, base64) and a phone-friendly "spell it out" helper.
Leaked-password check using the Have I Been Pwned range service: only 5 characters of the hash leave the device. (Needs internet and is a third-party service.)
Bulk generation with .txt and .csv download in the builder.
INCLUDED
Password Builder app (app/index.html): generate, check strength, site rules, 2FA codes, derived passwords, bulk lists. Open it in any browser, nothing to install.
Self-test page (app/selftest.html): one click on your own PC shows green/red for 16 checks
Example pages and a Node.js example
Full readable source, minified UMD and ES-module builds, a lite build (about 280 KB), TypeScript definitions
Test suite (46 unit tests, ESM check, 89,000-input fuzz test)
Documentation (README)
NOTE
The strength checker is an estimate and cannot know a rare word that is missing from its built-in lists; for generated passwords use the exact entropy value. Do not store passwords with this library: store a slow salted hash (Argon2id, scrypt or bcrypt) on your server. Policy presets follow published guidance as understood at the time of writing; check the current standard before claiming compliance. Includes third-party word lists (EFF Large Wordlist, CC BY 3.0; zxcvbn-ts data, MIT), see data/NOTICE.md.
Features
Secure random generator, exact entropy, passphrases, strength checker, site rules, TOTP/HOTP, derived passwords, API keys, UUID v7
Works with plain HTML, Node.js and bundlers
TypeScript definitions included
You have to login to leave a review!
All Reviews
No Review!
What type of support is included? Verified source code Free support included Download code immediately Quality guarantee for your satisfaction Support: info@sellanycode.com
You have to purchase this item to get support!
You have to login to ask a question!
All Questions
No Question!
$20
Verified source code
Join 36068+ buyers which trust us!
Download code immediately
100% Guarantee For Item! Satisfaction guarantee policy.