Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 301 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which encryption method does Prestashop use for the password field and how does it do it?

#1
Which encryption method does Prestashop use for the password field and how does it do it?
I want to encrypt the password field using the same technique as Prestashop.
Currently I am using this one:

$pass=md5($password);
Reply

#2
From [`Tools.php`](

[To see links please register here]

)

[line `1180` (version 1.6.1.x)](

[To see links please register here]

)

public static function encrypt($passwd)
{
return md5(_COOKIE_KEY_.$passwd);
}

[line `1069` (version 1.7)](

[To see links please register here]

)

public static function hash($passwd)
{
return md5(_COOKIE_KEY_.$passwd);
}

In 1.6 `_COOKIE_KEY_` is defined in `/config/settings.inc.php`

In 1.7 it's defined in [/config/bootstrap.php][1]


[1]:

[To see links please register here]

Reply

#3
In 1.6 `_COOKIE_KEY_` is defined in `/config/settings.inc.php`

In 1.7 it is generated from this file `/config/bootstrap.php` but stored here `/app/config/parameters.php`

If you are trying to insert directly in database than select md5 first than paste `_COOKIE_KEY_` and type password.
Reply

#4
After doing what Vividus says, you have to execute this query in **phpmyadmin**:

UPDATE ps_employee SET passwd=md5("COOKIE_KEY+Your_new_pass")
WHERE email="email_user


The "plus" sign does not go inside the quotes, it's all together `COOKIE_KEY` and your new password.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through