Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Password Encryption Rate Topic   - - - - -

 
  • D15_Dev
  • Member
  • Trial users
  • Join Date: 21-Jul 20
  • 16 posts

Posted 29 September 2021 - 09:51 AM #1

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'])"



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22386 posts

Posted 29 September 2021 - 01:49 PM #2

CS-Cart uses

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

Salt - is additional parameter stored in the cscart_users database


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • D15_Dev
  • Member
  • Trial users
  • Join Date: 21-Jul 20
  • 16 posts

Posted 30 September 2021 - 07:18 AM #3

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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22386 posts

Posted 30 September 2021 - 01:36 PM #4

Try to use empty salt and the following code 

$_pass = md5($password);

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)