Re: [Tutor] Python "password" securely hashed in script

2016-04-27 Thread Steven D'Aprano
On Wed, Apr 27, 2016 at 08:47:14AM -0400, Paul Smith wrote: > So creating small programs that automate my day specifically logins, how > can one "hash" or hide the user and pass items in the python script itself? You can't, really. For *low security* passwords, or a trusted environment, you may

Re: [Tutor] Python "password" securely hashed in script

2016-04-27 Thread Peter Otten
Paul Smith wrote: > So creating small programs that automate my day specifically logins, how > can one "hash" or hide the user and pass items in the python script > itself? I need to prevent someone from easily seeing or accessing these if > they happen to gain access to my python files. Thanks

Re: [Tutor] Python "password" securely hashed in script

2016-04-27 Thread Jan Johansson
>I need to prevent someone from easily seeing or accessing these if they >happen to gain access to my python files. Thanks in advance. If they can read your script, they can also reverse engineed the code and decode your user/pass. (Also, "hashing" is a one way destructive operation, you can

[Tutor] Python "password" securely hashed in script

2016-04-27 Thread Paul Smith
So creating small programs that automate my day specifically logins, how can one "hash" or hide the user and pass items in the python script itself? I need to prevent someone from easily seeing or accessing these if they happen to gain access to my python files. Thanks in advance.