Hello,
So the studio has asked me to protect some code, because they are giving 
access to external people to it.
I though that a way of doing it is, introducing in the code an import file 
as theLicense.py , so if that license file isn´t found, the code will not 
work. This license file is stored in the studio server, and no one know the 
root for it.
So the code would be something like

------------------------------------------------------------------------------------------------------------------------------------
import sys
my_pth = '/theRoot/tool_lic_file'
sys.path.append(my_pth)
try:
    import theLicense
except:
    cmds.warning("LICENSE NOT FOUND")
    sys.exit()
------------------------------------------------------------------------------------------------------------------------------------

So what I publish is the .pyc. of that code.
The problem is that when the code is compiled, if you open it, you´ll see 
something like:

------------------------------------------------------------------------------------------------------------------------------------
 ó
ØXc s1 d z d[] d l[] z[] e[] gHd
/theRoot/tool_lic_file append( ( ( s4 >  s
------------------------------------------------------------------------------------------------------------------------------------

As you can see, the root to the license is displayed in the .pyc, so it is 
very easy to get it, and there fore steal the company´s code

ps: I also thought about introducing an expire date, but I don´t like this 
method to much

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/464b06bc-1c53-4c79-8684-a9179c5a26f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to