Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling a script? protecting it by password?

Status
Not open for further replies.

Krischu

Civil/Environmental
Mar 8, 2015
6
I'm looking for a way to turn a python script into some kind of compiled program such that it can only be used by someone who knows an access password and also to hide the sources against competitors, for example, or other prying eyes. Is it possible?

Maybe I turn the script into a C-Program or something?


--
Christoph
 
Replies continue below

Recommended for you

I'd expect whatever method you use is only as limited as your adversary's motivation to crack it. That said, you can compile your python script to python bytecode (.pyc) which will obfuscate it a bit (though I believe it's just a matter of effort to back out the original code).

Your best bet is to have a solid legal agreement in place with whomever you're distributing the code to avoid further dissemination
 
There is a C++ API for Abaqus, I would suggest converting you Python script to C++
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor