tfsecured
tfsecured copied to clipboard
TFSecure for Android
Hello ! Thank you for this great implementation. How can use the encrypted model in android ? It would be great
I'll add an android example later. That's very simple:
- just try android projects with statically linked Tensorflow NDK library: https://github.com/search?q=filename%3AAndroid.mk+static+tensorflow.a
- and add TFSecured dir (source files) to
Android.mk
- and call C++ code from TFSecured
It's possible to rewrite TFSecured via Java and Tensorflow Java API, but it's less secure because disassembling and intercepting/hooking calls of Java code is much easier, than analyzing assembler code from .so binaries. The encryption key of your model can be easily intercepted via Xposed or Frida if you use only Java.