Files
loader/src/security.pxd
T
Oleksandr Bezdieniezhnykh 0c5686d149 Update project configuration and code structure
- Added '*.o' to .gitignore to exclude object files from version control.
- Modified Dockerfile to specify the application directory for Uvicorn.
- Updated setup.py to reflect the new source directory structure for Cython extensions.
- Adjusted E2E Docker Compose command to include the application directory.
- Refined type hints in ApiClient and Security classes for better clarity and consistency.

These changes enhance the project's organization and improve the build process.
2026-04-13 06:47:06 +03:00

20 lines
473 B
Cython

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