Juan Miscaro writes:

Hi, when setting up a new user in my Postfix/MySQL/Courier system I
need to set up a crypt() password.  I would like to use authpasswd but
I must be missing something fairly simple.  The same cleartext
password gives me different hashes.  Can someone clarify this for me?

$ authpasswd crypt
Password:
Reenter password:
{CRYPT}ohlceCfiQWTgs

ad...@hermes:~ $ authpasswd crypt
Password:
Reenter password:
{CRYPT}FwcjiaHYJiKCk

This is correct. crypted passwords are salted. The first two characters of a crypted-password is a random salt value that's factored into the encrypted content.

Note, however, that crypt() limits passwords to eight characters. This is an extremely old password encryption function that should not be used any more. Use other hash functions that support longer passwords.


Attachment: pgp1tjpImJr5g.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to