Skip to content

Feat: Add a password generator button in Add Key#69

Merged
mulbc merged 2 commits intomulbc:masterfrom
Raphyyy:feat/gen-passwd
Mar 23, 2026
Merged

Feat: Add a password generator button in Add Key#69
mulbc merged 2 commits intomulbc:masterfrom
Raphyyy:feat/gen-passwd

Conversation

@Raphyyy
Copy link
Copy Markdown

@Raphyyy Raphyyy commented Mar 17, 2026

This PR add a button to generate a 20 char length password directly from the Add Key window.
The charset is Fort knox (abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+~|}{[]:;?><,./-=`)

By clicking on Generate, the password input is being filled with the generated password and it is being copied to the clipboard.

I had to move the function copyStringToClipboard() from popup.js to common.js so the code can be reused in addKey.js.

image image

In the future it could be nice to add a way to customize the password generation in a tiny menu, like setting the desired password length, character range, etc.

Copy link
Copy Markdown
Owner

@mulbc mulbc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks for adding this!
I will merge this today and see if I enhance it before bundling up a new version

@mulbc mulbc merged commit aa90af7 into mulbc:master Mar 23, 2026
2 checks passed
@Raphyyy
Copy link
Copy Markdown
Author

Raphyyy commented Apr 24, 2026

hey @mulbc
Do you think you'll have the time soon to publish this PR on the stores ?

@mulbc
Copy link
Copy Markdown
Owner

mulbc commented Apr 27, 2026

damn... it's been a month already? I will push it right today

mulbc pushed a commit that referenced this pull request Apr 27, 2026
* add-key: added password generator

* formatted with prettier

---------

Co-authored-by: Raph@PC42 <raphael@42factory.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants