Skip to content

Commit 9d91e7f

Browse files
authored
Update code to 1.0.2
This is mainly for formatting and version control *Did fix bug in option4 in password generation menu not allowing digits as password.*
1 parent d0d97bb commit 9d91e7f

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# PasswordManagerProject V1.0.1
2-
PasswordManagerProject V1.0.1 Remastered
1+
# PasswordManagerProject V1.0.2
2+
PasswordManagerProject V1.0.2 Remastered
33

44
Choose an option:
55
1. Generate Password
@@ -27,3 +27,10 @@ Choose an option:
2727
6. Debug(Unsafe size) " # Size of 200000 (Not implemented)
2828

2929
Please report any bugs if you find any.
30+
-----
31+
32+
# Imports
33+
As of version 1.0.2
34+
import string
35+
import random
36+
import time

main.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
import string
22
import random
3+
import time
4+
5+
project_version = '1.0.2'
6+
7+
print(f"Welcome to the PasswordManager Application version: " + project_version +
8+
f"\nFor more information please go to the github @"
9+
f"\nhttps://github.com/Shini9000/PasswordManagerProject"
10+
f"\nAnd thank you for downloading and testing my application :)\n\n")
311

412
# true loop
513
while True:
14+
time.sleep(3.5)
615
# Main menu loop
716
user_input = input(f"Choose an option: "
8-
f"\n\n1. Generate Password "
9-
f"\n2. View Passwords "
10-
f"\n3. View Accounts "
11-
f"\n4. Add Account "
12-
f"\n5. Delete Account "
13-
f"\n6. Exit Application "
14-
f"\n\nEnter Input: ")
17+
f"\n 1. Generate Password "
18+
f"\n 2. View Passwords "
19+
f"\n 3. View Accounts "
20+
f"\n 4. Add Account "
21+
f"\n 5. Delete Account "
22+
f"\n 6. Exit Application "
23+
f"\nEnter Input: ")
1524
try:
1625
val = int(user_input)
1726
except ValueError:
@@ -58,8 +67,10 @@
5867
print(f'Returning to main menu!')
5968
case 4:
6069
generic_letters = string.ascii_letters
70+
numbers = string.digits
71+
string_line = numbers + generic_letters
6172
result_string = ''.join(
62-
(random.choice(generic_letters) for i in range(int(input("Select a password length: ")))))
73+
(random.choice(string_line) for i in range(int(input("Select a password length: ")))))
6374
result_string.startswith("\n")
6475
print("\n" + result_string + "\n")
6576
print(f'Returning to main menu!')

0 commit comments

Comments
 (0)