title: How can I encrypt or hide passwords in a Perl script?
body: <p>I am working on Perl script that uses <a href="http://search.cpan.org/dist/Expect" rel="noreferrer">Expect</a> to login via telnet to remote machines (don't ask, gotta use telnet). I also do perforce p4 login operations as necessary and use expect to pipe in the correct passwords. For now I just read passwords from clear text environment variable, i.e. <code>export PASSWORD=password</code>, which I know is no good security wise.</p>
  
  <p>What's the best way to store passwords for scripts like these that need a lot of passwords for multiple systems? Encrypted in a text file somehow? Or something else?</p>
  
  <p>Keep in mind I can't easily change the existing systems, like for example I can't really install SSH or anything like that.</p>