security - Hiding a password in a python script (insecure obfuscation only) -


i have got python script creating odbc connection. odbc connection generated connection string. in connection string have include username , password connection.

is there easy way obscure password in file (just nobody can read password when i'm editing file) ?

base64 encoding in standard library , stop shoulder surfers:

>>> import base64 >>> print base64.b64encode("password") cgfzc3dvcmq= >>> print base64.b64decode("cgfzc3dvcmq=") password 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -