Re: funny action of crypt

2004-03-04 Thread Stas Bekman
Philippe M. Chiasson wrote: On Thu, 2004-03-04 at 14:21 -0800, Stas Bekman wrote: Philippe M. Chiasson wrote: On Wed, 2004-03-03 at 18:14 -0800, Stas Bekman wrote: [EMAIL PROTECTED] wrote: Hi I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun and some CGI scripts with passw

Re: funny action of crypt

2004-03-04 Thread Philippe M. Chiasson
On Thu, 2004-03-04 at 14:21 -0800, Stas Bekman wrote: > Philippe M. Chiasson wrote: > > On Wed, 2004-03-03 at 18:14 -0800, Stas Bekman wrote: > > > >>[EMAIL PROTECTED] wrote: > >> > >>>Hi > >>> > >>>I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun > >>>and some CGI scripts with

Re: funny action of crypt

2004-03-04 Thread Stas Bekman
Philippe M. Chiasson wrote: On Wed, 2004-03-03 at 18:14 -0800, Stas Bekman wrote: [EMAIL PROTECTED] wrote: Hi I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun and some CGI scripts with password encryption. Script is ... $password = crypt($password, &mkSalt($name.$password.$v

Re: funny action of crypt

2004-03-04 Thread Mark Hawkes
>Perhaps you need to rewrite mkSalt() so it supports MD5 salts as well, if >that's what your system's crypt() expects (?). Talking of which, I've managed to find a subroutine I wrote that does exactly this... # # generate

Re: funny action of crypt

2004-03-04 Thread Mark Hawkes
At 16:55 2004-03-03 -0800, you wrote: >I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun >and some CGI scripts with password encryption. >$password = crypt($password, &mkSalt($name.$password.$value) ); I'm no expert, but here goes... There are 2 ways of implementing crypt(3): u

Re: funny action of crypt

2004-03-03 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun and some CGI scripts with password encryption. Script is ... $password = crypt($password, &mkSalt($name.$password.$value) ); sub mkSalt { local($t, $sum, @salt ) = @_; @salt = split(//, './012345

funny action of crypt

2004-03-03 Thread hara
Hi I have a problem when my apache_1.3.29 w/ mod_perl 1.29 runs PerlRun and some CGI scripts with password encryption. Script is ... $password = crypt($password, &mkSalt($name.$password.$value) ); sub mkSalt { local($t, $sum, @salt ) = @_; @salt = split(//,