Styling test

This commit is contained in:
2024-11-04 15:51:51 +01:00
parent fcdcf3b0d9
commit 64d4fa3305
9 changed files with 105 additions and 16 deletions

View File

@@ -21,8 +21,6 @@ class ConfigLoader(QObject):
@Slot(dict)
def setConfig(self, app_config):
try:
with open (self.config_dir + '/pyqcrm.toml', 'w') as f:
config = Vermasseln().oscarVermasseln(toml.dumps(app_config))
@@ -32,12 +30,10 @@ class ConfigLoader(QObject):
def __configLoad(self):
try:
with open (self.config_dir + '/pyqcrm.toml', 'r') as f:
config = f.read()
self.__config = toml.loads(Vermasseln().entschluesseln(config))
print(self.__config)
except FileNotFoundError:
print("Konnte die Konfiguration nicht laden.")

View File

@@ -23,6 +23,7 @@ class Vermasseln:
cipher = self.__vermasslungsKobold()
decrypted_data = cipher.decrypt_and_verify(encoded_data[0], encoded_data[1])
decrypted_data = decrypted_data.decode("utf-8")
return decrypted_data
def __vermasslungsKobold(self):
@@ -34,7 +35,6 @@ class Vermasseln:
cipher = AES.new(hashed, AES.MODE_SIV, nonce = nonce)
return cipher
print(Vermasseln().oscarVermasseln("irgendeinenText"))