commit b1e7e4db3891fe478830c18a87b9c1821efb1ff8
parent 4508194ae48a3789e00d74a4ab77a55d0d311edb
Author: therealFIGBERT <naomi@Naomis-MacBook-Air.local>
Date: Fri, 28 Jun 2019 15:40:12 -0700
Adding inital MacOS UI
Diffstat:
M | figEnc.py | | | 34 | +++++++++++++++++++++++----------- |
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/figEnc.py b/figEnc.py
@@ -1,14 +1,26 @@
from initiate_key import rsa_key
from encrypt import rsa_enc
from decrypt import rsa_dec
+import tkinter as tk
-exec_action = input("Are you encrypting or decrypting today (enc/dec)? ")
-if exec_action == "enc":
- key_gen = input("Are you generating fresh keys (y/n)? ")
- if key_gen == "y":
- rsa_key()
- rsa_enc()
- elif key_gen == "n":
- rsa_enc()
-elif exec_action == "dec":
- rsa_dec()
-\ No newline at end of file
+root = tk.Tk()
+root.wm_title("figENC")
+canvas = tk.Canvas(root, height=700, width=500)
+canvas.pack()
+frame = tk.Frame(root, bg='white')
+frame.place(relwidth=1, relheight=1)
+header = tk.Label(frame, text="figENC\nIndustry leading encryption by FIGBERT", bg="gray", fg="black", justify="center", font=("Arial", "18"))
+header.pack(fill="x", side="top", ipady="5")
+action = tk.Frame(frame, bg="white")
+action.pack(fill='both')
+action_label = tk.Label(action, text="Action:", bg="white", justify='left', font=("Arial", "14"))
+action_label.pack()
+action_list = tk.Listbox(action, bg="white", selectmode="single", font=("Arial", "12"), height=3, bd=1)
+action_list.insert(1, "Encrypt with fresh keys")
+action_list.insert(2, "Encrypt with generated key")
+action_list.insert(3, "Decrypt with generated key")
+action_list.pack(fill='both')
+submit_action = tk.Button(action, text="Begin Process", font=("Arial", "12"))
+submit_action.pack()
+
+root.mainloop()
+\ No newline at end of file