-
Notifications
You must be signed in to change notification settings - Fork 84
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
Password Generator #349
base: master
Are you sure you want to change the base?
Password Generator #349
Conversation
👇 Click on the image for a new way to code review
Legend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done @ShivamPande18
Please check the review comments once and modify if required.
VALID_CHARS = DIGITS+UPPER_CASE+LOWER_CASE+SYMBOLS | ||
|
||
#Adding atleast 1 character of all types of valid characters | ||
password_temp = random.choice(DIGITS)+ random.choice(UPPER_CASE)+ random.choice(LOWER_CASE)+ random.choice(SYMBOLS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So everytime the pwd will have digit, upper_case,lower_case_symbols in the beginning in the same order. Can you modify this to have it in random sequence.
#Adding atleast 1 character of all types of valid characters | ||
password_temp = random.choice(DIGITS)+ random.choice(UPPER_CASE)+ random.choice(LOWER_CASE)+ random.choice(SYMBOLS) | ||
|
||
if(length<8): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you have added only 4 chars in the top, the if condition will always be false right?
So, what is the use of that if condition?
Hi @bislara would you please merge my PR or tell me if you need any more modifications or clarifications? |
hey @ShivamPande18 , I have already reviewed the PR. Please check the comments and make the changes if required. |
Description
Python code for a simple CLI password generator in which you enter the length of the password you'd like to generate (Minimum 8) and it creates a strong random password containing symbols, capital letters, regular letters, and numbers.
Technologies and Languages
Python