root password in a .py script

Bart Nessux bart_nessux at hotmail.com
Fri Mar 12 18:11:30 CET 2004


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:

pass = "#$%^&@*#&*$^@"
instead of:
pass = "root-password"

Thanks,

Bart



More information about the Python-list mailing list