Y> Hello,
Y> I am using courier-mysql and I try to switch from clear password to crypt
Y> passwords. 
Y> It's easy to create a user with clear password but I don't no how to create
Y> crypt passwords ? It is not MySQL MD5 function.

Y> How can I operate ?

try using this function:

function hashPasswd($str){
        
        return "{md5}" . base64_encode(pack("H*", md5($str)));
        
}

Karolis





-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to