On Mon, 29 Aug 2005, Ken Perl wrote: > The password used to access a ftp server is stored in a text file, the > perl program gets the password from the file, the pass it to the ftp > server for logon, this is the background. > The requirement is encrypt the password store in a more secure way, > and the perl program could still use the encrypted password to logon > the server. what algorithm should be used in this task?
Have a look at CPAN's Crypt::Simple From the SYNOPSIS use Crypt::Simple; my $data = encrypt(@stuff); my @same_stuff = decrypt($data); Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>