Styling test
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
@@ -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"))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user