bubble has asked for the wisdom of the Perl Monks concerning the following question:
My (1) $salt gives me those errors with login. My (2) $salt gives me an empty row in the database. The solution might be trivial but, aren't they all. Thanks for your troublesub simpelCrypt { my $p = @_; (1) my $salt = join '', ('.', '/', 0..9, 'A'..'Z','a'..'z')[rand 64 +, rand 64]; (2) #my $salt = ($p =~ /^(..)/); my $crypt = crypt($p, $salt); return $crypt; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: AuthDBI salt ?
by DrManhattan (Chaplain) on Aug 01, 2000 at 17:45 UTC | |
|
Re: AuthDBI salt ?
by Anonymous Monk on Mar 02, 2001 at 16:44 UTC | |
|
Re: AuthDBI salt ?
by bubble (Novice) on Aug 04, 2000 at 16:31 UTC |