A password, passphrase, and username generator with a Rust core compiled to WebAssembly. Everything runs client-side — nothing is sent to a server, and generation history is kept only in the browser's local storage.
- Rust core (
src/): character-set password generation, word-list passphrases, and username/email alias generation, plus entropy estimation. Covered by unit tests insrc/lib.rs. - Frontend (
web/): plain HTML/CSS/JS. No build step of its own — it loads the compiled wasm module fromweb/pkg/, which is generated at build time (see below).
| Type | Example output | Notes |
|---|---|---|
| Plus-addressed email | you+amazon@gmail.com |
Enter your real inbox; works with Gmail, Outlook, Fastmail, iCloud and most others |
| Catch-all email | amazon@yourdomain.com |
Requires a domain you control with catch-all mail enabled |
| Forwarded email alias | word-word.amazon@simplelogin.co |
Supported services: SimpleLogin, Addy.io, Firefox Relay, DuckDuckGo, Fastmail, iCloud |
| Random word | botanical42 |
Single word with optional number |
| Adjective + noun | botanicalOtter42 |
Two-word handle with optional capitalization and number |
This repo includes .github/workflows/deploy.yml, which on every push to
main:
- Installs Rust with the
wasm32-unknown-unknowntarget - Builds the crate with
wasm-pack build --release --target web --out-dir web/pkg - Publishes the
web/folder to GitHub Pages
To turn it on:
- Push this repo to GitHub.
- Go to Settings → Pages and set Source to GitHub Actions.
- Push to
main(or run the workflow manually from the Actions tab). The first run takes a minute or two; your site will be live athttps://<username>.github.io/<repo>/once it finishes.
The compiled web/pkg/ folder is intentionally not committed — CI rebuilds
it from source on every push, so the deployed wasm always matches the Rust
code in the repo.
You'll need Rust, the wasm32-unknown-unknown target, and wasm-pack:
rustup target add wasm32-unknown-unknown
cargo install wasm-pack
wasm-pack build --release --target web --out-dir web/pkgThen serve web/ with any static file server (opening index.html
directly via file:// won't work — wasm modules must be fetched over
http). For example:
cd web
python3 -m http.server 8000
# open http://localhost:8000The core logic has native unit tests that don't require the wasm target:
cargo test- Word lists live in
src/words.rs— swap in your own for different passphrase/username vocabulary. - Colors, type, and layout tokens are at the top of
web/style.css. - Special-character set and ambiguous-character list are constants near
the top of
src/lib.rs. - Alias service domains are in the
AliasService::domain()impl insrc/lib.rs— add new services by extending the enum and match arm.