For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > November 2006 > Masking/Hiding a password in Perl Source









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Masking/Hiding a password in Perl Source
Chris G.

2006-11-02, 6:57 pm

I have written a Perl script that connects to various networking devices
and downloads their configurations to a TFTP server. This is working
great and I want to enhance its security by masking the password
somehow. Currently, I hardcode a variable to the password.

$password = 'mypassword';

In the interest of security, I want to find a way to mask this. I'm not
sure how to go about it though. I don't want to have a plain-text
password on the system anywhere.

Any suggestions?

Thanks,

Chris G.
c-gauthie-A-T-pcc-D-O-T-edu (just remove the - characters and make the
appropriate substitutions to email me.
Joe Smith

2006-11-05, 3:59 am

Chris G. wrote:
> I want to enhance its security by masking the password somehow.


perldoc -q "hide the source"

You won't like the answer.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com