Hide formulas in Javascript used for generating graphs with Flot
As I mentioned in an earlier post, I will be using flot for an upcoming project to generate graphs for a user. I would like to protect the formulas used to generate these graphs, so that someone can't simply copy the javascript. Is there a way to do this and still calculate the v开发者_开发问答alues on the fly with the ability for a user to change the graph dynamically. I've thought of obfuscating the javascript, but that doesn't seem to be enough.
You can keep your code on your server, and have the client-side code just make AJAX or JSONP calls to get graph data. If you package up your code so that the browser can fetch and execute it, the user can fetch and study it.
精彩评论