Password Encryption

Hello,

I created a website that show a list of my top clients from my cs cart website, for this created a bridge between the tow, who work very well, what I want to do now is create a registration form that add a user for both website, when I did it, the user is created on cs cart, but the password is not hashed in the right way.

Which encryption cs cart use to hash passwords?

In my website, I tried sha1 and md5, but any of them worked, ex: "$pass = sha1($_post['pass'])"

CS-Cart uses

$_pass = md5(md5($password) . md5($salt));

Salt - is additional parameter stored in the cscart_users database

Should I put something in $salt or can I leave it empty ?

Try to use empty salt and the following code

$_pass = md5($password);

(!) Not tested