made the file download the libaries

This commit is contained in:
2026-07-30 17:28:45 +02:00
parent cbda68256a
commit d268007202
3 changed files with 27 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
key.key
+24 -4
View File
@@ -1,8 +1,28 @@
from cryptography.fernet import Fernet
import customtkinter as ctk
import json import json
import os import os
import pyperclip import pyperclip
import subprocess
import sys
try:
import customtkinter as ctk
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", "customtkinter"])
import customtkinter as ctk
try:
from cryptography.fernet import Fernet
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", "cryptography"])
from cryptography.fernet import Fernet
try:
import pyperclip
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", "pyperclip"])
import pyperclip
ctk.set_appearance_mode("Dark") ctk.set_appearance_mode("Dark")
app = ctk.CTk() app = ctk.CTk()
@@ -64,8 +84,8 @@ def saveToJson():
data = json.load(file) data = json.load(file)
except (FileNotFoundError, json.JSONDecodeError): except (FileNotFoundError, json.JSONDecodeError):
data = {} data = {}
data[WebsiteIn] = encrypted.decode() data[WebsiteIn] = encrypted.decode()
with open("passwords.json", "w") as file: with open("passwords.json", "w") as file:
+2 -1
View File
@@ -1,2 +1,3 @@
{ {
}
}