Skip to content

Commit 9dbdbd4

Browse files
Minor Bug Fixes
Way 1 is meant for Minimal Resource Usage and Way 2 for more secure generation.
1 parent e626592 commit 9dbdbd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: password-generator.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
smallans=str(input("Are lowercase Alphabets allowed ? (Y/N) : "))
99
digans=str(input("Are Digits allowed ? (Y/N) : "))
1010
spans=str(input("Are Special Charecters allowed ? (Y/N) : "))
11-
rep=input("Way 1 or Way 2? (1/2) : ")
11+
print("Way 1 is meant for Minimal Resource Usage and Way 2 for more secure generation.")
12+
rep=input("Way 1 or Way 2 ? (1/2) : ")
1213
capans,smallans,digans,spans=capans.title(),smallans.title(),digans.title(),spans.title()
1314
if capans=='Y':
1415
if smallans=='Y':
@@ -61,7 +62,7 @@
6162
password=""
6263
if rep=='1':
6364
for i in range(passlen):
64-
password+=comblis[random.randint(0,len(comblis)]
65+
password+=comblis[random.randint(0,len(comblis)-1)]
6566

6667
else:
6768
random.shuffle(comblis)

0 commit comments

Comments
 (0)