how to protect the source

Tino Wildenhain tino at wildenhain.de
Mon Sep 15 13:29:41 CEST 2008


Hi,

João Abrantes wrote:
> Hello Everyone.
> 
> 
> I am building a client in python that will connect himself to a mysql
> server with a certain username and password. I will compile this client
> and turn him into a .exe . The thing is that I know that is possible to
> get the source of the code back from an .exe and I don't want anyone to
> know which username and password are they using because I don't want
> them to access to the mysql server without my client. Do you have any
> ideas of what can i do? Thanks! <mailto:python-list at python.org>

Don't put that into the source. Use whatever your database supports
for authorisation with a config file or ssl certificate. You can not
hide the credentials when you need to give them out of your hands.

Better protect the database objects with permissions on tables, views
and stored procedures. Everything your program can do everybody having
your program can do.

HTH
Tino

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20080915/2bbfecd5/attachment.bin>


More information about the Python-list mailing list