News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Encryption method in password?

Started by jlocker, June 29, 2013, 07:36:59 AM

Previous topic - Next topic

jlocker

What is the password encryption method in AbanteCart 1.1.5..

abantecart

md5 is used for password encryption.

jlocker

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;
   }

abolabo

#3
it is not encryption. it's a generator of random password

jlocker

so if i save the password like md5($password) it will work or???

abolabo

no. we also use salt.

Why do you want to save password directly without ui?

jlocker

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.

Forum Rules Code of conduct
AbanteCart.com 2010 -