Export encryption for configuration and recovery

This commit is contained in:
2024-12-10 10:17:34 +01:00
parent 28c32dba8a
commit 77922d104c
3 changed files with 3 additions and 3 deletions

View File

@@ -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