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

Feature - Random Alphanumeric Password Generation #10

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

eli-johnson-04
Copy link

@eli-johnson-04 eli-johnson-04 commented Feb 10, 2024

Feature Request from @kali64amd - Added flags to generate a single random alphanumeric, uppercase alphanumeric, upper- and lowercase alphanumeric, and solely numeric password, with an optional flag for including special characters. The alphanumeric passwords default to length 12 and the numeric defaults to 9, although any number >= 1 can be included as an optional argument with the commands. The script defaults to keyword-based generation and the new commands will not interfere with using keywords in the case that both are included.

Created flags for various options for random password generation and made the generation option a condition as opposed to defaulting to keywords.
Corrected the argparse attributes by replacing hyphens with underscores and set up the lists containing characters for the random password generation
Script now generates single random passwords of varying types and saves to the output file. Skeleton for using special characters is included and commented but not implemented.
Special characters are now an option with random password generation. Also fixed output formatting issue in line 616.
Added mutual exclusivity to the random password generation commands. Random commands do not interfere with keyword commands, so mutual exclusivity is not necessary there. Not the safest code but it works. Still need to update README and attempt to determine SystemExit: 2 error with using multiple random commands under mutual exclusion.
also added a sample random command to the help command output
Enabled the option to specify the length of a random password and included default values for all options. Also added comments.
Random passwords must be a minimum of one character in length
@t3l3machus
Copy link
Owner

@eli-johnson-04 hey, I'll check it out! Did you close it because you found bugs or anything? I'll get back to you but i need some time

@t3l3machus t3l3machus reopened this Feb 13, 2024
@eli-johnson-04
Copy link
Author

@eli-johnson-04 hey, I'll check it out! Did you close it because you found bugs or anything? I'll get back to you but i need some time

Hey! I had to contribute to an open-source project for a class, and I wasn’t 100% sure of what I was doing. I put in all due effort for the feature though!

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.

None yet

3 participants