switch from hardware object to string

and replace mac address to disk serial number
for more predictable hash key
This commit is contained in:
Alex Bezdieniezhnykh
2025-05-02 09:41:04 +03:00
parent 28069f63f9
commit 59eb39d447
7 changed files with 16 additions and 50 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
from credentials cimport Credentials
from hardware_service cimport HardwareInfo
cdef class Security:
@staticmethod
@@ -9,7 +8,7 @@ cdef class Security:
cdef decrypt_to(input_bytes, key)
@staticmethod
cdef get_hw_hash(HardwareInfo hardware)
cdef get_hw_hash(str hardware)
@staticmethod
cdef get_api_encryption_key(Credentials credentials, str hardware_hash)