Use JNI to encode data with signed public key in Android and decode on server.