Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Password Encryption - How do I do it?


cczernia

Recommended Posts

Posted

I currently have PWA (Purchase Without and Account) installed on my shopping cart. Though we don't want to require an account for purchases we are adding new functionality to our accounts and would like to encourage people to create an account. We figured we could do this on checkout_success simply by pressing a button. The only thing the user would have to enter is his password, everything else can be recovered from the order table.

 

The problem is that passwords are encrypted in osc and I don't know how to do this. So, does anyone know how to encrypt a password? Thanks in advance.

Shade and Sweet Water

Chris Czerniak

Posted
The problem is that passwords are encrypted in osc and I don't know how to do this. So, does anyone know how to encrypt a password? Thanks in advance.

 

the password encryption code can be found in catalog/includes/functions/password_funcs.php (and another one in admin). use the functions in there to compare the password entered against the password in the db.

 

for an example of its use, look in login.php - about line 34.

Posted

i cant be of much help, but if you do figure this out, would you be willing to add it as a contribution? It sounds like a really great idea! I just hate the way that oscommerce deals with the checkout.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...