Person A owns a server (in particular, an Amazon EC2 instance).
I have to upload a binary (written in C++) onto this server which periodically receives data from a third party server, and then periodically and strategically sends HTTP requests to some other third party server.
These strategically-sent HTTP requests ultimately generate financial gain, which will be shared between Person A and myself.
I wrote the source code of the binary, which contains a number of trade secrets.
For various reasons, the binary has to be run on Person A's server (and not my own).
Thus, I want to ensure 2 things:
1) That Person A cannot somehow reverse engineer the binary to obtain the aforementioned trade secrets.
2) That Person A cannot copy this binary and run it by himself in perpetuity.
If I'm unable to ensure both of these things, then Person A would be able to cut me out of the process, allowing Person A to reap the entirety of the financial gain himself.
The financial gain may be very large, so it's possible that Person A may be willing to expend a lot of time and resources to do this.
Any thoughts on how to accomplish what I described above? Thanks so much!