RE: encrypt the password stored in a file
- From: JCINTRON@xxxxxxxxx (Jose J. Cintron)
- Date: Tue, 30 Aug 2005 10:29:24 -0400
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:mlists@xxxxxxxxxxxxxxx]
Sent: Tuesday, August 30, 2005 08:38
To: beginners@xxxxxxxx
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: beginners-unsubscribe@xxxxxxxx For additional
commands, e-mail: beginners-help@xxxxxxxx <http://learn.perl.org/>
<http://learn.perl.org/first-response>
.
- Prev by Date: Time Ranges
- Next by Date: Tie::Registry
- Previous by thread: Re: encrypt the password stored in a file
- Next by thread: class regex
- Index(es):