password encryption

This is a discussion on password encryption within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; No solution yet: How does qmail encrypt the password that it stores in vpopmail? Shelly...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-02-2006
sheldonlg@gmail.com
 
Posts: n/a
Default password encryption

No solution yet:

How does qmail encrypt the password that it stores in vpopmail?

Shelly

Reply With Quote
  #2 (permalink)  
Old 02-03-2006
Thomas Krug
 
Posts: n/a
Default Re: password encryption

sheldonlg@gmail.com <sheldonlg@gmail.com> wrote:
>
> No solution yet:
> How does qmail encrypt the password that it stores in vpopmail?



I'd guess qmail does not store any password in vpopmail... vpopmail
comes with it's own authentication module and with it's own routines
to add users etc.
You can switch off encryption of vpopmail's passwords so that vpopmail
stores it's password as clear text.

Best regards
Thomas




Reply With Quote
  #3 (permalink)  
Old 02-04-2006
sheldonlg@gmail.com
 
Posts: n/a
Default Re: password encryption

vpopmail uses mysql as a database. In it there are two fields, one for
clear text password and one for and encrypted password. The encrypted
password is different for two users with the same password.

Example:
pw_name pw_clear pw_passwd
testacct2 asdfgh $1$VatP8d60$HhKVM1UAZTrMSGrqHJiwr/
testacct4 asdfgh $1$esHumhwr$QXd6hmiSoxU91ubh9nfuV.

I would like to be able to compare passwords when the user logs into my
site. I would need to be able to encrypt his password to do this to
compare against pw_passwd, instead of being forced to use pw_clear. To
do this I would have to encrypt the passwod myself.

Reply With Quote
  #4 (permalink)  
Old 02-04-2006
AK
 
Posts: n/a
Default Re: password encryption

sheldonlg@gmail.com wrote:

> vpopmail uses mysql as a database. In it there are two fields, one for
> clear text password and one for and encrypted password. The encrypted
> password is different for two users with the same password.
>
> Example:
> pw_name pw_clear pw_passwd
> testacct2 asdfgh $1$VatP8d60$HhKVM1UAZTrMSGrqHJiwr/
> testacct4 asdfgh $1$esHumhwr$QXd6hmiSoxU91ubh9nfuV.
>
> I would like to be able to compare passwords when the user logs into my
> site. I would need to be able to encrypt his password to do this to
> compare against pw_passwd, instead of being forced to use pw_clear. To
> do this I would have to encrypt the passwod myself.
>


I do not see what your dilema is. How is it different in functionality
to compare within your system the clear text user provided password to
the clear text database entry?

The whole idea of alternate encryption is to increase the difficulty of
guessing the password.

AK
Reply With Quote
  #5 (permalink)  
Old 02-04-2006
Shelly
 
Posts: n/a
Default Re: password encryption


"AK" <aktrader2@excite.com> wrote in message
news:BJSdnZtdrK1OJHnenZ2dnUVZ_t2dnZ2d@comcast.com. ..
> sheldonlg@gmail.com wrote:
>
>> vpopmail uses mysql as a database. In it there are two fields, one for
>> clear text password and one for and encrypted password. The encrypted
>> password is different for two users with the same password.
>>
>> Example:
>> pw_name pw_clear pw_passwd
>> testacct2 asdfgh $1$VatP8d60$HhKVM1UAZTrMSGrqHJiwr/
>> testacct4 asdfgh $1$esHumhwr$QXd6hmiSoxU91ubh9nfuV.
>>
>> I would like to be able to compare passwords when the user logs into my
>> site. I would need to be able to encrypt his password to do this to
>> compare against pw_passwd, instead of being forced to use pw_clear. To
>> do this I would have to encrypt the passwod myself.
>>

>
> I do not see what your dilema is. How is it different in functionality to
> compare within your system the clear text user provided password to the
> clear text database entry?
>
> The whole idea of alternate encryption is to increase the difficulty of
> guessing the password.


Because I want to remove the clear text password field and just use an
encrypted field. Yes, as it now sits there is no problem. However, I want
to increase hack protection.


Reply With Quote
  #6 (permalink)  
Old 02-08-2006
AK
 
Posts: n/a
Default Re: password encryption

Shelly wrote:

> "AK" <aktrader2@excite.com> wrote in message
> news:BJSdnZtdrK1OJHnenZ2dnUVZ_t2dnZ2d@comcast.com. ..
>
>>sheldonlg@gmail.com wrote:
>>
>>
>>>vpopmail uses mysql as a database. In it there are two fields, one for
>>>clear text password and one for and encrypted password. The encrypted
>>>password is different for two users with the same password.
>>>
>>>Example:
>>>pw_name pw_clear pw_passwd
>>>testacct2 asdfgh $1$VatP8d60$HhKVM1UAZTrMSGrqHJiwr/
>>>testacct4 asdfgh $1$esHumhwr$QXd6hmiSoxU91ubh9nfuV.
>>>
>>>I would like to be able to compare passwords when the user logs into my
>>>site. I would need to be able to encrypt his password to do this to
>>>compare against pw_passwd, instead of being forced to use pw_clear. To
>>>do this I would have to encrypt the passwod myself.
>>>

>>
>>I do not see what your dilema is. How is it different in functionality to
>>compare within your system the clear text user provided password to the
>>clear text database entry?
>>
>>The whole idea of alternate encryption is to increase the difficulty of
>>guessing the password.

>
>
> Because I want to remove the clear text password field and just use an
> encrypted field. Yes, as it now sits there is no problem. However, I want
> to increase hack protection.
>
>


The salt for the crypt command in your case is the set of eight
characters between the $1$ and the next $ signs.
you should provide the encrypted password from the database. The crypt
function will use the eight characters in conjnction with an md5
transaction to encrypt the cleartext password provided by the user. One
cautionary note: make sure that you are not using any functionality
within your POP3, IMAP, SMTP Authentication which requires access to the
clear password. Certain things come to mind: SMTP auth (md5), IMAP
(encrypted username/password).

If the user uses an MD5-Digest authentication, your system needs to have
access to the clear text password in order to generate a digest and compare.


Please further note that the existance of clear text password
information within your system does not make it more prone to being hack.

I.e. because you leave your house keys in the house, does not make it
more likely to be broken into then if you left the doors and windows
open. Secure your system's service, and disable services that you do
not need/use. Patch the system with the vendors upadtes. Pick complex
passwords. Change passwords on a regular basis.

AK
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:57 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0