This repository contains techniques for encryption and decryption of machine learning models. Machine learning models deployed on mobile devices are vulnerable to a theft without a proper encryption techniques.
Flutter Bisonai Security plugin is located inside plugin directory.
python3 security.py \
--encrypt \
--input_file README.md \
--output_file README_enc.md
python3 security.py \
--decrypt \
--input_file README_enc.md \
--output_file README_dec.md
diff README.md README_dec.md
python -m unittest security_test
cd plugin/test
mkdir build && cd build
cmake ..
make
./BisonaiSecurityTest
- https://en.wikipedia.org/wiki/Linear_congruential_generator
- TABLES OF LINEAR CONGRUENTIAL GENERATORS OF DIFFERENT SIZES AND GOOD LATTICE STRUCTURE https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.34.1024&rep=rep1&type=pdf
- https://en.wikipedia.org/wiki/XOR_cipher