Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of special characters to be used in password #219

Open
Tytrater opened this issue Jan 14, 2024 · 1 comment
Open

List of special characters to be used in password #219

Tytrater opened this issue Jan 14, 2024 · 1 comment

Comments

@Tytrater
Copy link

Many websites require a special character from a predefined list, and this list often changes from site to site. It would be great for the password generator to accept a list of special characters to be used

EX:
password 12 !$%*

would generate a 12-character password and would not use any special characters not provided in the list

@Ammar434
Copy link

Ammar434 commented May 7, 2024

Good morning,

Could you please assign this issue to me? I'd love to work on it and here's what I have in mind:

  • Rewrite the random function to utilize crypto.random for a more robust random generator.
  • Introduce options like -e (--exclude) to remove characters after a specified point.
  • Implement options like -nn (--no-number) to exclude numbers and -ns (--no-symbol) to exclude symbols.
  • Establish a default behavior, as suggested by @Tytrater, where if a password size is provided after a blank space, all characters preceding it will be excluded from password generation.
  • Similarly, if only the query trigger keyword is provided, then all characters after that should be ignored when generating the password.

Thanks for considering my request!

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

No branches or pull requests

2 participants