in reply to Protecting passwords in source
If you encrypted the password, you'd presumably then have to have a password to decrypt it and you're right back where you started from. Start by making the source only readable by the narrowest possible amount of people (possibly by making it setuid, but make sure you've read perldoc perlsec and trim the privileged code down to the bare minimum to get the job done). You could also use a source filter, but that also has limitations (see perldoc -q "hide the source").
Depending on the application you might be able to use some other means of getting the password to your application (for instance running it under ssh-agent) or running as a different user (sudo or the like). More details about what you need the password for might help people steer you towards a more applicable solution.
--
We're looking for people in ATL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Protecting passwords in source
by pg (Canon) on Jul 20, 2005 at 01:45 UTC | |
by jhourcle (Prior) on Jul 20, 2005 at 05:21 UTC | |
by Fletch (Bishop) on Jul 20, 2005 at 13:25 UTC |