×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

compiling a script? protecting it by password?

compiling a script? protecting it by password?

compiling a script? protecting it by password?

(OP)
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

RE: compiling a script? protecting it by password?

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

RE: compiling a script? protecting it by password?

There is a C++ API for Abaqus, I would suggest converting you Python script to C++

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources