in reply to Hiding passwords in scripts

You can use something like Filter::CBC to encrypt your entire source code, so that the password (and the rest of the program) are illegible to the human.

Replies are listed 'Best First'.
Re^2: Hiding passwords in scripts
by Plato (Friar) on Sep 29, 2004 at 11:28 UTC
    Hi There,

    thanks for the quick replies, I should have pointed out that other people will probably be working on these scripts also, so encrypting the entire source code is probably not going to be an option for me. Its just the actual password that needs to be hidden.

    Plato

      This sounds to me like the scriptkiddies who use some "don't use your right mouse button" script to 'hide' other javascripts that the stole from numerous sites ;)

      If you are developing something with more people, I take it that these people need that password too. If not, there's no need for a password in there. If they have their own password, use something like $HOME/.configuration, or just accept it as a parameter.

      --
      b10m

      All code is usually tested, but rarely trusted.
        b10m is correct. Shared passwords offer no accountability. Very poor practice.

        Neil Watson
        watson-wilson.ca