Files
ai-training/tests/security_test.py
T
Alex Bezdieniezhnykh 2fa864018f upload model to cdn and api
switch to yolov11
2025-03-03 23:36:10 +02:00

10 lines
319 B
Python

import io
from security import Security
key = Security.get_model_encryption_key()
test_str = 'test test test 123'
test_encrypted = Security.encrypt_to(io.BytesIO(test_str.encode('utf-8')), key)
test_res = Security.decrypt_to(io.BytesIO(test_encrypted), key)
print(f'Initial: {test_str}')
print(f'Result : {test_res}')