Files
annotations/Azaion.Inference/security.pxd
T
Alex Bezdieniezhnykh 59eb39d447 switch from hardware object to string
and replace mac address to disk serial number
for more predictable hash key
2025-05-02 09:41:04 +03:00

20 lines
423 B
Cython

from credentials cimport Credentials
cdef class Security:
@staticmethod
cdef encrypt_to(input_stream, key)
@staticmethod
cdef decrypt_to(input_bytes, key)
@staticmethod
cdef get_hw_hash(str hardware)
@staticmethod
cdef get_api_encryption_key(Credentials credentials, str hardware_hash)
@staticmethod
cdef get_model_encryption_key()
@staticmethod
cdef calc_hash(str key)