mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 11:36:33 +00:00
0c5686d149
- 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.
20 lines
473 B
Cython
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) |