-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (16 loc) · 719 Bytes
/
main.py
File metadata and controls
32 lines (16 loc) · 719 Bytes
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
#Carson Hernandez
from Encoder import encoder
def menu():
Continue = True
while Continue == True:
print("Menu\n-------------\n1. Encode\n2. Decode\n3. Quit\n ")
choice = int(input("Please enter an option: "))
if choice == 1:
password_nonencoded = int(input("Please enter your password to encode: "))
print("Your password has been encoded and stored!\n ")
grape_fruit = encoder(password_nonencoded)
if choice == 2:
#CALL DECODER HERE THEN INPUT THE VALUE IN F STRING:)
print(f"The encoded password is {grape_fruit}, and the original password is PUT DECODER HERE\n ")
if __name__ == "__main__":
menu()