mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-29 19:02:43 +00:00
Update Picocrypt.py
This commit is contained in:
parent
1e0b547513
commit
fc9769db40
1 changed files with 12 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Picocrypt v1.11 (Beta)
|
Picocrypt v1.12
|
||||||
Dependencies: argon2-cffi, pycryptodome, reedsolo, tkinterdnd2
|
Dependencies: argon2-cffi, pycryptodome, reedsolo, tkinterdnd2
|
||||||
Copyright (c) Evan Su (https://evansu.cc)
|
Copyright (c) Evan Su (https://evansu.cc)
|
||||||
Released under a GNU GPL v3 License
|
Released under a GNU GPL v3 License
|
||||||
|
@ -252,6 +252,7 @@ def inputSelected(draggedFile):
|
||||||
statusString.set("Ready.")
|
statusString.set("Ready.")
|
||||||
status["state"] = "enabled"
|
status["state"] = "enabled"
|
||||||
progress["value"] = 0
|
progress["value"] = 0
|
||||||
|
clearInput["state"] = "normal"
|
||||||
|
|
||||||
# File decode error
|
# File decode error
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
|
@ -298,14 +299,15 @@ clearInput = tkinter.ttk.Button(
|
||||||
command=clearInputs
|
command=clearInputs
|
||||||
)
|
)
|
||||||
if platform.system()=="Darwin":
|
if platform.system()=="Darwin":
|
||||||
clearInput.place(x=398,y=14,width=64,height=24)
|
clearInput.place(x=398,y=15,width=64,height=25)
|
||||||
else:
|
else:
|
||||||
clearInput.place(x=421,y=14,width=40,height=24)
|
clearInput.place(x=421,y=15,width=40,height=25)
|
||||||
|
clearInput["state"] = "disabled"
|
||||||
|
|
||||||
separator = tkinter.ttk.Separator(
|
separator = tkinter.ttk.Separator(
|
||||||
tk
|
tk
|
||||||
)
|
)
|
||||||
separator.place(x=20,y=36,width=440)
|
separator.place(x=20,y=38,width=440)
|
||||||
|
|
||||||
# Label that prompts user to enter a password
|
# Label that prompts user to enter a password
|
||||||
passwordString = tkinter.StringVar(tk)
|
passwordString = tkinter.StringVar(tk)
|
||||||
|
@ -840,6 +842,7 @@ def wrapper():
|
||||||
|
|
||||||
statusString.set(unknownErrorNotice)
|
statusString.set(unknownErrorNotice)
|
||||||
dummy.focus()
|
dummy.focus()
|
||||||
|
working = False
|
||||||
finally:
|
finally:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
@ -878,17 +881,20 @@ def secureWipe(fin):
|
||||||
def disableAllInputs():
|
def disableAllInputs():
|
||||||
passwordInput["state"] = "disabled"
|
passwordInput["state"] = "disabled"
|
||||||
cpasswordInput["state"] = "disabled"
|
cpasswordInput["state"] = "disabled"
|
||||||
|
clearInput["state"] = "disabled"
|
||||||
adArea["state"] = "disabled"
|
adArea["state"] = "disabled"
|
||||||
startBtn["state"] = "disabled"
|
startBtn["state"] = "disabled"
|
||||||
eraseBtn["state"] = "disabled"
|
eraseBtn["state"] = "disabled"
|
||||||
keepBtn["state"] = "disabled"
|
keepBtn["state"] = "disabled"
|
||||||
rsBtn["state"] = "disabled"
|
rsBtn["state"] = "disabled"
|
||||||
|
|
||||||
|
|
||||||
# Reset UI to encryption state
|
# Reset UI to encryption state
|
||||||
def resetEncryptionUI():
|
def resetEncryptionUI():
|
||||||
global working
|
global working
|
||||||
passwordInput["state"] = "normal"
|
passwordInput["state"] = "normal"
|
||||||
cpasswordInput["state"] = "normal"
|
cpasswordInput["state"] = "normal"
|
||||||
|
clearInput["state"] = "disabled"
|
||||||
adArea["state"] = "normal"
|
adArea["state"] = "normal"
|
||||||
startBtn["state"] = "normal"
|
startBtn["state"] = "normal"
|
||||||
eraseBtn["state"] = "normal"
|
eraseBtn["state"] = "normal"
|
||||||
|
@ -902,6 +908,7 @@ def resetEncryptionUI():
|
||||||
def resetDecryptionUI():
|
def resetDecryptionUI():
|
||||||
global working
|
global working
|
||||||
passwordInput["state"] = "normal"
|
passwordInput["state"] = "normal"
|
||||||
|
clearInput["state"] = "normal"
|
||||||
adArea["state"] = "normal"
|
adArea["state"] = "normal"
|
||||||
startBtn["state"] = "normal"
|
startBtn["state"] = "normal"
|
||||||
keepBtn["state"] = "normal"
|
keepBtn["state"] = "normal"
|
||||||
|
@ -926,6 +933,7 @@ def resetUI():
|
||||||
cpasswordInput["state"] = "disabled"
|
cpasswordInput["state"] = "disabled"
|
||||||
cpasswordString.set("Confirm password:")
|
cpasswordString.set("Confirm password:")
|
||||||
cpasswordLabel["state"] = "disabled"
|
cpasswordLabel["state"] = "disabled"
|
||||||
|
clearInput["state"] = "normal"
|
||||||
status["state"] = "disabled"
|
status["state"] = "disabled"
|
||||||
progress["value"] = 0
|
progress["value"] = 0
|
||||||
inputString.set("Drag and drop file(s) and folder(s) into this window.")
|
inputString.set("Drag and drop file(s) and folder(s) into this window.")
|
||||||
|
|
Loading…
Reference in a new issue