in reply to Re: Tact and the Monastery
in thread Tact and the Monastery
so that the temporary variables (@chars and $salt) disappear after the closure ends. And I agree with the suggestion lower down: you could lose $salt and incorporate the salting in the call to crypt.# crypt the password my $crypted; { my @chars=(a..z,A..Z,0..9,'.','/'); my $salt= $chars[rand(@chars)] . $chars[rand(@chars)]; $crypted=crypt($password,$salt); }
--t. alex
but my friends call me T.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tact and the Monastery
by Aristotle (Chancellor) on Sep 21, 2002 at 08:55 UTC | |
by talexb (Chancellor) on Sep 22, 2002 at 02:51 UTC | |
by Aristotle (Chancellor) on Sep 22, 2002 at 03:43 UTC |