I've got a project to write a function for performing certain operations on some data. I can write the code in C/C++ but I don't want to share the code of that function with the employer. Instead, I just want to give him access to calling the function in his own code. Is it possible? I thought of these 2 approaches -
- Hosting the function on some server (if that's possible) and giving the employer a URL to access it.
- Password protecting the function code file (again, if that's possible) and only allowing access to call it in the code.
Please tell me if any of these is feasible and also give me a way to do it.