让某人 运行 你的代码,但看不到它

Let someone run your code, but not see it

描述

我很好奇是否有办法让某人 运行 您的 python 代码,但是


尝试

我已经尝试 post 我在 github 要点上的示例代码,并使用 curl 和管道输入它。 但是我的 URL 在那里,所以他们可以看到该文件,如果他们访问 URL.

https://gist.githubusercontent.com/bheng/b23d775ee7b106cd7cc0ae5ac71b81a9/raw/c6ecd3ed7bc04699d73e1b9ed521f481ac6a41c4/get_curl.py

curl "https://gist.githubusercontent.com/bheng/b23d775ee7b106cd7cc0ae5ac71b81a9/raw/c6ecd3ed7bc04699d73e1b9ed521f481ac6a41c4/get_curl.py" -s -N > cool; python cool

问题

这是不可能的吗?

或者这是可以通过库/插件/框架实现的东西吗?

这是不可能的。见这篇论文:

https://www.math.ias.edu/csdm/files/Archives/11-12/rimpagliazzo_on_the_impossibility_obfuscating_programs.pdf