root password in a .py script

Jorgen Grahn jgrahn-nntq at
Fri Mar 12 18:30:37 CET 2004

On Fri, 12 Mar 2004 12:11:30 -0500, Bart Nessux <bart_nessux at> wrote:
> I have to place a root password into a Python script. Is there a way to
> encode it so that one can't read the password when viewing the file, but
> when the sting is used it's decoded? For example:

The only remotely secure way is to do what Unix does in /etc/passwd (to name
a well-documented example).  As far as I can see.


  // Jorgen Grahn <jgrahn@      ''If All Men Were Brothers,
\X/      >    Would You Let One Marry Your Sister?''

More information about the Python-list mailing list