0

Before I buy my first setup. I'll launch my deep-learning-pipline on sth like vast.ai. I never did it before, but How can I protect my script from being "stolen"?

This should be a serious launch and take around 7 days to finish training. google colab doesn allow enough memory & ram for what i need ( need around 64GB ram)

is there a way to run a python script encrypted? (note: it makes use of libaries)

  • 1
    This won’t answer your question, but if you’re comfortable using Google Colab for a private project, you probably shouldn’t worry too much about protecting this script. – Alex Walczak Oct 20 '20 at 04:38

2 Answers2

0

It is hard to run python encrypted. However, you could try to store the code into encrypted disk space.

George Y
  • 525
  • 3
  • 14
0

There are some ways, from fully obfuscating your script to converting your script into equivalent cython or creating an executable out of it using the likes of Nuitka.
You may also implement some important logic in C/C++ (as extensions) and then call them in your script. You may also set up a server where you feel is OK and send the bits that needs to be executed, basically create a distributed system. As you can see there are many ways, and the deeper you go the more complex it gets.

Also you might want to have a look here as well.

Hossein
  • 24,202
  • 35
  • 119
  • 224