mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:36:30 +00:00
21 lines
475 B
Cython
21 lines
475 B
Cython
from credentials cimport Credentials
|
|
from hardware_service cimport HardwareInfo
|
|
|
|
cdef class Security:
|
|
@staticmethod
|
|
cdef encrypt_to(input_stream, key)
|
|
|
|
@staticmethod
|
|
cdef decrypt_to(input_bytes, key)
|
|
|
|
@staticmethod
|
|
cdef get_hw_hash(HardwareInfo hardware)
|
|
|
|
@staticmethod
|
|
cdef get_api_encryption_key(Credentials credentials, str hardware_hash)
|
|
|
|
@staticmethod
|
|
cdef get_model_encryption_key()
|
|
|
|
@staticmethod
|
|
cdef calc_hash(str key) |