From 77922d104c594b8b2aeab272c487f86e51df046ab2a952a6a5f90dd1feeaf7ce Mon Sep 17 00:00:00 2001 From: linuxero Date: Tue, 10 Dec 2024 10:17:34 +0100 Subject: [PATCH] Export encryption for configuration and recovery --- doc/pyqcrm_backup.pyqrec | 1 - doc/recovery_backup.pyqrec | 1 + lib/Vermasseln.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 doc/pyqcrm_backup.pyqrec create mode 100644 doc/recovery_backup.pyqrec diff --git a/doc/pyqcrm_backup.pyqrec b/doc/pyqcrm_backup.pyqrec deleted file mode 100644 index 032ddab..0000000 --- a/doc/pyqcrm_backup.pyqrec +++ /dev/null @@ -1 +0,0 @@ -wEz0x0JyG9QQUTtzEylvLPNAanay5MXznhwSRBOgVd5aeqkHNg1Nr6E2yZWKGluBbjPO9ABhmTbt9M7PQ3wTdB8uYuzT6WDz6FOXaqYkgoGj7cBEdTARpGs7p8tUnbL3Fd9ShIf+JaxSl6jvpsYAq9EUpYCiAAqa80qSMnEB8vb1WbV6QZ5fVl5dHb3ORiMkcr8glVns5NJmMeG6Jc55O8hL+Xa1ldB6gLNIhg56uW7R+C7Al7QVow3K0ogU0gMQWYIQ4RjA578VJ7d0.LeTNoVJLU/GGSKXPfcxWEw== \ No newline at end of file diff --git a/doc/recovery_backup.pyqrec b/doc/recovery_backup.pyqrec new file mode 100644 index 0000000..4d14119 --- /dev/null +++ b/doc/recovery_backup.pyqrec @@ -0,0 +1 @@ +eZWTiQiLuG1DIa4O8i2JRX/NjRtnFyZ6nRxI20HwDZfY4xLtIELdBNmcFh90QVf7lUCp3I6bwS2UaYu4rmB08yADwqjFBX5aaYew6JxOJG3buJw+EAIHIRD2gx9m89KjWwBoCQNp83cfybLeJCa9TM366GMjcm7xXusvvf0NI36zK4OaGtqkdkqcBBc6k2bp5fBMI6E4UWxI6dELMtPWcbrXGteUtK1WiIOQulAmwj6r658HBrmWDxAE7Cr3diwWQ4hMbF/4BP+0VOA0.U2y1dnWnMMosMDybdCGNnQ== \ No newline at end of file diff --git a/lib/Vermasseln.py b/lib/Vermasseln.py index 3bd817d..7857100 100644 --- a/lib/Vermasseln.py +++ b/lib/Vermasseln.py @@ -38,11 +38,11 @@ class Vermasseln: return decrypted_data def __vermasslungsKobold(self, local= True): - key = platform.processor().encode("utf-8") if local else "(==daniishtverhaftetwegensexy#)" + key = platform.processor().encode("utf-8") if local else b"(==daniishtverhaftetwegensexy#)" key = key[0:31] hash_key = SHA256.new(key) hashed = hash_key.digest() - nonce = platform.machine().encode("utf-8") if local else "(==Uskarishtverhaftetwegensexy#)" + nonce = platform.machine().encode("utf-8") if local else b"(==Uskarishtverhaftetwegensexy#)" cipher = AES.new(hashed, AES.MODE_SIV, nonce = nonce) return cipher