figenc

[RADIOACTIVE] rsa and symmetric key encryption scripts and executables
git clone git://git.figbert.com/figenc.git
Log | Files | Refs | README

commit f74c5269c6c3fd8e528e0237829ce73ecdc26829
parent f1c28ad1da2268539aec56b12f9c92cafe1b2d4d
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Wed,  3 Jul 2019 19:14:38 -0700

Totally redoing the Windows application GUI

Diffstat:
MWindows/figENC.exe | 0
MWindows/figENC_Windows.py | 118++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
2 files changed, 84 insertions(+), 34 deletions(-)

diff --git a/Windows/figENC.exe b/Windows/figENC.exe Binary files differ. diff --git a/Windows/figENC_Windows.py b/Windows/figENC_Windows.py @@ -8,76 +8,125 @@ def setup(mode): mode = mode[0] global crypto_mode if mode == 0: + file_frame.pack_forget() + file_label.pack_forget() + file_instructions.pack_forget() + file_input.pack_forget() + passcode_frame.pack_forget() passcode_label.pack_forget() passcode_instructions.pack_forget() passcode_input.pack_forget() + save.pack_forget() + save_label.pack_forget() + save_instructions.pack_forget() + save_input.pack_forget() + submit.pack_forget() + file_frame.pack(fill="both") file_label.config(text="Filepath/s to the file/s to encrypt") file_label.pack() file_instructions.pack() file_input.pack(fill='x') + passcode_frame.pack(fill="both") passcode_label.config(text="Set private key passcode") passcode_label.pack() passcode_instructions.config(text="CRITICAL: DO NOT FORGET YOUR PASSCODE.\nWITHOUT IT, YOUR DATA WILL BE LOST.") passcode_instructions.pack() passcode_input.pack(fill='x') + save.pack(fill="both") + save_label.config(text="Save location for keys") save_label.pack() save_instructions.pack() save_input.pack(fill="both") submit.config(text="Encrypt file/s") - submit.pack() + submit.pack(pady="10") crypto_mode = "key_enc" elif mode == 1: + file_frame.pack_forget() + file_label.pack_forget() + file_instructions.pack_forget() + file_input.pack_forget() + passcode_frame.pack_forget() + passcode_label.pack_forget() + passcode_instructions.pack_forget() + passcode_input.pack_forget() + save.pack_forget() + save_label.pack_forget() + save_instructions.pack_forget() + save_input.pack_forget() + submit.pack_forget() + file_frame.pack(fill="both") file_label.config(text="Filepath/s to the file/s to encrypt") file_label.pack() file_instructions.pack() file_input.pack(fill='x') - passcode_label.pack_forget() - passcode_instructions.pack_forget() - passcode_input.pack_forget() + save.pack(fill="both") save_label.config(text="Key location") save_label.pack() - save_instructions.config(text="Filepath to matching key trio") save_instructions.pack() save_input.pack(fill="both") submit.config(text="Encrypt file/s") - submit.pack() + submit.pack(pady="10") crypto_mode = "enc" elif mode == 2: + file_frame.pack_forget() + file_label.pack_forget() + file_instructions.pack_forget() + file_input.pack_forget() + passcode_frame.pack_forget() passcode_label.pack_forget() passcode_instructions.pack_forget() passcode_input.pack_forget() + save.pack_forget() + save_label.pack_forget() + save_instructions.pack_forget() + save_input.pack_forget() + submit.pack_forget() + file_frame.pack(fill="both") file_label.config(text="Filepath/s to the file/s to decrypt") file_label.pack() file_instructions.pack() file_input.pack(fill='x') + passcode_frame.pack(fill="both") passcode_label.config(text="Private key passcode") passcode_label.pack() passcode_instructions.config(text="Passcode must be the same passcode used when the keys were created") passcode_instructions.pack() passcode_input.pack(fill='x') + save.pack(fill="both") + save_label.config(text="Key location") save_label.pack() save_instructions.pack() save_input.pack(fill="both") submit.config(text="Decrypt file/s") - submit.pack() + submit.pack(pady="10") crypto_mode = "dec" elif mode == 3: - passcode_label.pack_forget() - passcode_instructions.pack_forget() - passcode_input.pack_forget() + file_frame.pack_forget() file_label.pack_forget() file_instructions.pack_forget() file_input.pack_forget() + passcode_frame.pack_forget() + passcode_label.pack_forget() + passcode_instructions.pack_forget() + passcode_input.pack_forget() + save.pack_forget() + save_label.pack_forget() + save_instructions.pack_forget() + save_input.pack_forget() + submit.pack_forget() + passcode_frame.pack(fill="both") passcode_label.config(text="Set private key passcode") passcode_label.pack() passcode_instructions.config(text="CRITICAL: DO NOT FORGET YOUR PASSCODE.\nWITHOUT IT, YOUR DATA WILL BE LOST.") passcode_instructions.pack() passcode_input.pack(fill='x') + save.pack(fill="both") + save_label.config(text="Save location for keys") save_label.pack() save_instructions.pack() save_input.pack(fill="both") submit.config(text="Create keys") - submit.pack() + submit.pack(pady="10") crypto_mode = "just_key" def go(mode, save_folder, target_file, passkey=None): @@ -95,42 +144,43 @@ root = tk.Tk() root.wm_title("figENC") canvas = tk.Canvas(root, height=700, width=650) canvas.pack() -frame = tk.Frame(root) +frame = tk.Frame(root, bg="#1A181C") frame.place(relwidth=1, relheight=1) -header = tk.Label(frame, text="figENC\nIndustry leading encryption by FIGBERT", justify="center", font=("Arial", "24"), relief=tk.RAISED) -header.pack(fill="x", side="top", ipady="5") +header = tk.Label(frame, text="figENC", justify="center", font=("Arial", "24"), bg="#643181", fg="#B494C7") +subheader = tk.Label(frame, text="Industry leading encryption by FIGBERT", justify="center", font=("Arial", "18"), bg="#643181", fg="#B494C7", pady="5") +header.pack(fill="x", side="top") +subheader.pack(fill="x", side="top") -action = tk.Frame(frame) +action = tk.Frame(frame, bg="#1A181C", pady="5") action.pack(fill='both') -action_label = tk.Label(action, text="Action:", justify='left', font=("Arial", "14")) +action_label = tk.Label(action, text="Action:", justify='left', font=("Arial", "14"), bg="#1A181C", fg="#ACA0B2") action_label.pack() -action_list = tk.Listbox(action, selectmode="single", font=("Arial", "12"), height=4, bd=1, relief=tk.SUNKEN) +action_list = tk.Listbox(action, selectmode="single", font=("Arial", "12"), height=4, bd=1, relief=tk.SUNKEN, bg="#1A181C", fg="#B494C7", selectbackground="#643181") action_list.insert(1, "Encrypt with fresh keys") action_list.insert(2, "Encrypt with generated keys") action_list.insert(3, "Decrypt with generated keys") action_list.insert(4, "Only create fresh keys") -action_list.pack(fill='both') -submit_action = tk.Button(action, text="Begin Process", font=("Arial", "12"), command=lambda: setup(action_list.curselection())) +action_list.pack(fill='both', pady="10") +submit_action = tk.Button(action, text="Begin Process", font=("Arial", "12"), command=lambda: setup(action_list.curselection()), bg="#643181", fg="#B494C7") submit_action.pack() -step_two =tk.Frame(frame) +step_two =tk.Frame(frame, bg="#1A181C") step_two.pack(fill="both") -modifiers = tk.Frame(step_two) -modifiers.pack(fill="both") -file_label = tk.Label(modifiers, text="If you see this, the app broke", font=("Arial", "14")) -file_instructions = tk.Label(modifiers, text="Separate filepaths with colons (:)", font=("Arial", "11")) -file_input = tk.Entry(modifiers, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN) -passcode_label = tk.Label(modifiers, text="If you see this, the app broke", font=("Arial", "14")) -passcode_instructions = tk.Label(modifiers, text="If you see this, the app broke", font=("Arial", "11")) -passcode_input = tk.Entry(modifiers, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN) +file_frame = tk.Frame(step_two, bg="#1A181C", pady="8") +file_label = tk.Label(file_frame, text="If you see this, the app broke", font=("Arial", "14"), bg="#1A181C", fg="#ACA0B2") +file_instructions = tk.Label(file_frame, text="Separate filepaths with colons (:)", font=("Arial", "11"), bg="#1A181C", fg="#B494C7") +file_input = tk.Entry(file_frame, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN, bg="#1A181C", fg="#ACA0B2") +passcode_frame = tk.Frame(step_two, bg="#1A181C", pady="8") +passcode_label = tk.Label(passcode_frame, text="If you see this, the app broke", font=("Arial", "14"), bg="#1A181C", fg="#ACA0B2") +passcode_instructions = tk.Label(passcode_frame, text="If you see this, the app broke", font=("Arial", "11"), bg="#1A181C", fg="#B494C7") +passcode_input = tk.Entry(passcode_frame, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN, bg="#1A181C", fg="#ACA0B2") -save = tk.Frame(step_two) -save.pack(fill='both') -save_label = tk.Label(save, text="Save location for keys", font=("Arial", "14")) -save_instructions = tk.Label(save, text="Save the keys to an empty folder, and store them somewhere secure\nIf other key files exist in the same folder, they will be overwritten", font=("Arial", "11")) -save_input = tk.Entry(save, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN) -submit = tk.Button(save, text="If you see this, the app broke", font=("Arial", "12"), command=lambda: go(mode=crypto_mode, save_folder=save_input.get(), target_file=file_input.get(), passkey=passcode_input.get())) +save = tk.Frame(step_two, bg="#1A181C", pady="8") +save_label = tk.Label(save, text="Save location for keys", font=("Arial", "14"), bg="#1A181C", fg="#ACA0B2") +save_instructions = tk.Label(save, text="Save the keys to an empty folder, and store them somewhere secure\nIf other key files exist in the same folder, they will be overwritten", font=("Arial", "11"), bg="#1A181C", fg="#B494C7") +save_input = tk.Entry(save, font=("Arial", "12"), justify=tk.CENTER, textvariable=tk.StringVar, relief=tk.SUNKEN, bg="#1A181C", fg="#ACA0B2") +submit = tk.Button(save, text="If you see this, the app broke", font=("Arial", "12"), command=lambda: go(mode=crypto_mode, save_folder=save_input.get(), target_file=file_input.get(), passkey=passcode_input.get()), bg="#643181", fg="#B494C7") root.mainloop() \ No newline at end of file