mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:26:30 +00:00
switch from hardware object to string
and replace mac address to disk serial number for more predictable hash key
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user