Skip to content

Commit

Permalink
Update password_Manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitjosh78 authored Nov 19, 2020
1 parent 938a3db commit 96b2e68
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions password_Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,34 @@ def decryptData(new_key):
return


# Help section

# Greeting!

def helpSection():
print()
print(
"Right now,you are viewing the help section of PassBot(A simple yet quite effective password manager)"
)
print("If you are using this for the 1st time then type 'new' \n")
print(
"If you have already used this to save some passwords and want to view them ,then type 'old' and choose option 2\n"
)
print(
"If you have already used this and want to save another password,then type 'old' and choose 1"
)
print("You will now go back to the menu.")
print()
return

# Greetings!
print(
"Hello, welcome to PassBot. This is a simple,easy to use password manager,to store all your important credentials."
)

while True:
print("To know more, type 'help'")
print(
"If you are ready to use and this is your first time,Type 'New'\nIf already used before type 'Old"
"If you are ready to use and this is your first time,Type 'New'\nIf already used before type 'Old'"
)

userChoice = input("Enter your choice:").lower()
Expand Down Expand Up @@ -227,16 +245,9 @@ def decryptData(new_key):
break

if userChoice == 'help':
helpSection()
else:
print("Wrong Choice, you will be sent to the help section now")
print()
print(
"Right now,you are viewing the help section of PassBot(A simple yet quite effective password manager)"
)
print("If you are using this for the 1st time then type 'new' \n")
print(
"If you have already used this to save some passwords and want to view them ,then type 'old' and choose option 2\n"
)
print(
"If you have already used this and want to save another password,then type 'old' and choose 1"
)
print("You will now go back to the menu.")
print()
helpSection()

0 comments on commit 96b2e68

Please sign in to comment.