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
Post a Comment