I have some proprietary formulas that are used to calculate some characteristics of a car. I have it all in a php file and the user is accessing this from ajax in javascript on the client side.
I believe that in doing so, the user will never be able to access the formulas in the php script, is this true (if I have the access setting correctly)?
The actual problem that I have is probably 80 equations, and this runs 200 times in a loop to get final answers and processor intensity. Running 1 is fine, but if I had 10 people using the site, it would slow down the server.
I canβt put all the formulas on the client side, otherwise he will be able to download them. And I canβt say 90% of the equations on the client side and leave the rest on the server, because then I would have to go back and forth with ajax 200 times inside the loop to get the answers once.
What are my options to do client-side material, but protect formulas?
source share