or just (php) :

  echo(crypt("password to encrypt", "65536"));

;-)

This will encrypt the password in the way vpopmail can understand it.

Abaddon

At 12:21 22/11/00 -0500, you wrote:
>I made it work by selecting the crypt'd password out of the table, taking 
>the first two chars of it, using
>that as the salt against the crypt() function in PHP, then comparing the 
>output to the crypted password ...
>
>pseudo:
>
>select pw_passwd as $Crypted;
>$Salt = left($Crypted, 2);
>if (crypt($Password, $Salt) == $Crypted) then password is good.
>
>Ken Jones wrote:
>
> > "junwon,Seo" wrote:
> > >
> > > Hi,
> > > I'm using Vpopmail 4.9.6 (support MySQL).
> > > In my information,  Vpopmail  authentication password that maked by 
> unix CRYPT() function.
> > >
> > > I'd like to using the other method password... Examply,  Clear text, 
> Password function of MySQL,.....
> > > Help me.
> >
> > From what I have heard, the mysql encryption funtions are not
> > compatible with unix crypt functions.
>
>--
>Michael T. Babcock, C.T.O. FibreSpeed
>http://www.fibrespeed.net/~mbabcock


Reply via email to