I have a Python Program whose code I would like to protect. For sake of example, let's say I coded a novel function called "add" which does the following:
def add(n1, n2):
return n1 + n2
I'd like to release this functionality to users so that people can add numbers together quickly, but I don't want them to be able to see my "secret sauce" (the code) of how I add numbers together.
After looking at this question (and specifically this answer) on Stack Overflow, I've determined that the best way for me to do this is to host a website that allows a person to type in two numbers, and then displays the result.
How can I do this without revealing my Python code?