mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 21:36:35 +00:00
2fa864018f
switch to yolov11
10 lines
319 B
Python
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}') |