-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassMan.py
44 lines (38 loc) · 1.5 KB
/
PassMan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import questionary, sys
import passStore, passFetch, delPass, Cred
from colorama import Fore, Style
from os import system,name
print("\n\n")
print("==========================================================")
print("****** * * ")
print("* * ****** ****** ****** * * * * ****** * *")
print("* * * * * * * * * * * * * *")
print("****** ****** ****** ****** * * ****** * * *")
print("* * * * * * * * * * * *")
print("* * * ****** ****** * * * * * *")
print("==========================================================")
print("\n\n")
if Cred.auth():
while True:
print()
opt = questionary.select("What to do? ",
choices=[
"Fetch Password", "Store Password",
"Delete Password", "Quit"
]).ask()
if opt == "Fetch Password":
print()
passFetch.getPassword()
elif opt == "Store Password":
print()
passStore.storePassword()
elif opt == "Delete Password":
delPass.delPassword()
elif opt == "Quit":
if name=='nt':
_ = system('cls')
else:
_ = system('clear')
sys.exit()
else:
print(Fore.RED + Style.BRIGHT + "\n!!...Password does not Match...!!")