https://github.com/bisonai/flutter-machine-learning-security
Protect your Machine Learning model in your Flutter application.
https://github.com/bisonai/flutter-machine-learning-security
edge-machine-learning encoder-decoder mobile-ai security xor-cipher
Last synced: 2 months ago
JSON representation
Protect your Machine Learning model in your Flutter application.
- Host: GitHub
- URL: https://github.com/bisonai/flutter-machine-learning-security
- Owner: Bisonai
- License: apache-2.0
- Created: 2021-06-15T13:07:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T02:37:29.000Z (over 3 years ago)
- Last Synced: 2025-04-23T04:59:11.714Z (8 months ago)
- Topics: edge-machine-learning, encoder-decoder, mobile-ai, security, xor-cipher
- Language: C++
- Homepage:
- Size: 890 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security.py
Awesome Lists containing this project
README
# Flutter Machine Learning Security
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.
## Example Usage
```bash
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
```
## Unit tests
```python
python -m unittest security_test
```
## Flutter plugin
### Test
```bash
cd plugin/test
mkdir build && cd build
cmake ..
make
./BisonaiSecurityTest
```
## Resources
* 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