root password in a .py script
ZZZ-ialbert-ZZZ at mailblocks-ZZZ.com-ZZZ
Fri Mar 12 19:53:56 CET 2004
Bart Nessux 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:
> pass = "#$%^&@*#&*$^@"
> instead of:
> pass = "root-password"
Why do you need it decoded?
You could list the encrypted root
password and then if the input password
encrypts to the same thing then it means it was
a valid one.
More information about the Python-list