AbanteCart Community

Shopping Cart Operations => Support => Topic started by: jlocker on June 29, 2013, 07:36:59 AM

Title: Encryption method in password?
Post by: jlocker on June 29, 2013, 07:36:59 AM
What is the password encryption method in AbanteCart 1.1.5..
Title: Re: Encryption method in password?
Post by: abantecart on June 29, 2013, 11:51:20 AM
md5 is used for password encryption.
Title: Re: Encryption method in password?
Post by: jlocker on July 01, 2013, 02:50:48 AM
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;
   }
Title: Re: Encryption method in password?
Post by: abolabo on July 01, 2013, 05:42:11 AM
it is not encryption. it's a generator of random password
Title: Re: Encryption method in password?
Post by: jlocker on July 02, 2013, 12:01:20 AM
so if i save the password like md5($password) it will work or???
Title: Re: Encryption method in password?
Post by: abolabo on July 02, 2013, 04:51:09 AM
no. we also use salt (http://en.wikipedia.org/wiki/Salt_%28cryptography%29).

Why do you want to save password directly without ui?
Title: Re: Encryption method in password?
Post by: jlocker on July 02, 2013, 07:06:01 AM
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.