Here is a sample.
$pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail
$decrypted = "test";
if ( crypt($decrypted, "\$1\$LObTh\$") == $pwd)
Thanks to the list, Evren and Rudi to help me understand something about
Von: Evren Yurtesen [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 25. August 2003 14:15
An: Andrej Dragicevic
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: AW: [vchkpw] Clear Passwords
It depends on your crypt library. If you are using blowfish or
Mine returns md5 and it can work with both DES and MD5 at the same time
I am sorry that this is not so good help to you, but you can still try
password that vpopmail returns in your web thingy. There is a
that your crypt libraries might process this password especially if this
is on the same machine. The program should use the same settings.
One thing is that you can not get your cleartext passwords anymore
you change all the email passwords or you clear all the user passwords
use the password learning option, although this is little bit risky.
On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> Yes, but I need to know how is vpopmail crypting passwords. It isn't
> md5. Do you know how are passwords crypted?
> For example:
> If I have a password "test", the md5 string is
> "098f6bcd4621d373cade4e832627b4f6". Vpopmail returns a string
> "$1$LObTh$LcOWUS4U6glAr2vB4oycr0" for the same password.
> -----Ursprüngliche Nachricht-----
> Von: Evren Yurtesen [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 25. August 2003 13:45
> An: Andrej Dragicevic
> Betreff: Re: AW: [vchkpw] Clear Passwords
> isnt that web module support crypted passwords?
> On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > I want to synchronize vpopmail passwords with another web module...
> > need to get all passwords from vpopmail, put them into database, so
> > the web module can use these passwords for authorization...
> > -----Ursprüngliche Nachricht-----
> > Von: Evren Yurtesen [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 25. August 2003 12:44
> > An: Andrej Dragicevic
> > Cc: [EMAIL PROTECTED]
> > Betreff: Re: [vchkpw] Clear Passwords
> > unless you compiled in clear password support in vpopmail when you
> > installing it, you can not get.
> > if you didnt compile in at first and now all your passwords are
> > encrypted.
> > There is no way of getting the clearpassword for you.
> > why do you need it anyway?
> > On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > > Hello List,
> > >
> > > I want to get all passwords from vpopmail (ver. 5.2) accounts. If
> > use
> > > vuserinfo with -p option, the function returns a crypted password.
> > > do I get clear password from the returned string, for example with
> > > PHP???
> > >
> > > TIA.
> > >
> > >
> > >