C++ Library implementing a Client-Server Privacy Preserving Indoor Localization Protocol and a simple Android Application which uses it.
Details of the implementation can be found in the paper "FAPRIL: Towards Faster Privacy-preserving Fingerprint-based Localization" published at the 19. International Conference on Security and Cryptography (SECRYPT'22) by:
- Christopher van der Beets, Darmstadt University of Applied Sciences
- Raine Nieminen, Technical University of Darmstadt, ENCRYPTO
- Thomas Schneider, Technical University of Darmstadt, ENCRYPTO
Warning: This code is not meant to be used for a productive environment and is intended for testing and demonstration purposes only.
- app: This folder contains the mobile application, which will trigger the evaluation part.
- PPILLib: Ths folder contains the Library which is used by the mobile application. This Library is base on the Mobile Private Contact Discovery Library. Essentially here are all the parts of the protocol implemented.
- PPILLib/droidCrypto/Server: This folder contains the part of the Server, which will trigger the garbling part.
- Database: This folder contains a few examples of how the Database-files should look like and can be used for testing.
- JAVA JNI libaries
- C++ compiler supporting C++14
- Phone with arm64-v8a ABI
- Android NDK 21+
- Android SDK 28+
- Before Building: fill in the Config-File (PPILLib/Config.h) with your Path to the Server Database and the IP and Port of the Host of the connection (e.g. of your Router)
- Server:
cd PPILLib
mkdir build && cd build
cmake ..
make -j
You may will receive the error "Could NOT find JNI". In this case you will have to got to /PPILLib/build/CMakeCache.txt and set the following variables manually: JAVA_INCLUDE_PATH (path to your jni.h), JAVA_INCLUDE_PATH2 (path to your jni_md.h), JAVA_AWT_INCLUDE_PATH(path to your jawt.h)
- Mobile App: Open gradle project in Android Studio, build and deploy. (Debugging and Datatransfer must be enaled on connected device)
- Run the main function with the number of Access points: e.g. '''PPILLib/droidCrypto/Server/main 20'''
- Start the mobile application
This code is provided as a experimental implementation for testing purposes and should not be used in a productive environment. We cannot guarantee security and correctness.
This project is based on the Mobile Private Contact Discovery Library droidCrypto by Daniel Kales.