Add Password Generator tool - #8
Merged
Merged
Conversation
A single-file, offline productivity/security tool that generates strong random passwords locally using crypto.getRandomValues (rejection-sampled to avoid modulo bias). Length slider (4–64), toggles for uppercase, lowercase, numbers, symbols, and an "avoid ambiguous characters" option, with a live entropy-based strength meter and one-tap copy. Follows the Hillnote design system (azure primary, mist canvas, Manrope display, 24px card radius). Settings persist in localStorage. Registered in tools.json and bumped catalogVersion to 19. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FvC7h6adG42ydYXb6ZuHV5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this tool?
Password Generator — a productivity/security tool that creates strong, random passwords right inside the Hillnote workspace. Everything happens locally: nothing is ever sent anywhere. Useful for anyone who needs a quick, trustworthy password without reaching for a separate site.
Highlights:
crypto.getRandomValues(neverMath.random), rejection-sampled to avoid modulo bias so no character class is subtly favoured.I l 1 O 0, etc.).length × log2(poolSize), shown as bits and a four-segment meter (Weak → Very strong).document.execCommandfallback and a toast confirmation.localStorageunder the namespaced keypassword-generator:v1.Designed to the Hillnote design system: azure
#4d63ffprimary, cool-mist canvas, near-black ink, Manrope-900 display headline, and the signature 24px card radius.Checklist
password-generator/index.htmlwith all CSS + JS inline.fetch, orimport.screenshots/password-generator.webp(vianpm run screenshot password-generator).tools.json(dirmatches the folder name).catalogVersion(18 → 19).version. (N/A — new tool atversion1.)npm run validatepasses locally.Notes for reviewers
randInt— the discarded high bytes keep the distribution uniform for any pool size.String.fromCharCode) so the source stays clear and out of the validator's obfuscation warnings.Generated by Claude Code