Author Topic: Encryption method in password?  (Read 2927 times)

Offline jlocker

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Encryption method in password?
« on: June 29, 2013, 07:36:59 AM »
What is the password encryption method in AbanteCart 1.1.5..

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Encryption method in password?
« Reply #1 on: June 29, 2013, 11:51:20 AM »
md5 is used for password encryption.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline jlocker

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Encryption method in password?
« Reply #2 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;
   }

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Encryption method in password?
« Reply #3 on: July 01, 2013, 05:42:11 AM »
it is not encryption. it's a generator of random password
« Last Edit: July 01, 2013, 05:45:05 AM by abolabo »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline jlocker

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Encryption method in password?
« Reply #4 on: July 02, 2013, 12:01:20 AM »
so if i save the password like md5($password) it will work or???

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Encryption method in password?
« Reply #5 on: July 02, 2013, 04:51:09 AM »
no. we also use salt.

Why do you want to save password directly without ui?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline jlocker

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Encryption method in password?
« Reply #6 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.

 

Powered by SMFPacks Social Login Mod