AbanteCart Community
Shopping Cart Operations => Support => Topic started by: jlocker on June 29, 2013, 07:36:59 AM
-
What is the password encryption method in AbanteCart 1.1.5..
-
md5 is used for password encryption.
-
okkk but waht is this??
static function generatePassword($length = 8) {
$chars = "1234567890abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$i = 0;
$password = "";
while ($i <= $length) {
$password .= $chars{mt_rand(0, strlen($chars))};
$i++;
}
return $password;
}
-
it is not encryption. it's a generator of random password
-
so if i save the password like md5($password) it will work or???
-
no. we also use salt (http://en.wikipedia.org/wiki/Salt_%28cryptography%29).
Why do you want to save password directly without ui?
-
because i'm trying to insert users without login to control panel using form..but password encryption is not working and i can't find the session..so if i can find the session name i can develop the product page. as in if i can restrict access to product page for each user..so to do that i have to store the session name(username)..but i can't find it.can you help me to do that.