If it's just a demo, do a quick and dirty encryption yourself, for example - xor the password before storing it and xor it again before using it.
my $string = "password"; my $encrypted_string = ~$string; <DO WHAT EVER YOU WANT NOW> -----Original Message----- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 08:38 To: beginners@perl.org Subject: Re: encrypt the password stored in a file Ken Perl wrote: > In fact, I are just writing a demo program used in a presentation, > when I open its config file through screen sharing, I don't want the > visiter see the plain text password. Why didn't you say so? my $password = 'in_the_real_world_your_password_would_go_here_protected_from_prying_ey es_by_decent_permissions_since_obscuring_it_is_as_secure_as_covering_yo ur_head_with_your_arms_in_an_atomic_blast'; Done! In other words, don't use a real password in the part they see... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>