data injection

Problems installing or using the NOP Design Free Shopping Cart that do not fit into one of the above categories.

Moderators: Koibito, Stefko, Randy

data injection

Postby webeye » Tue Mar 16, 2010 5:47 am

hellow everyone

firstly, i want to thank you for this cart, it is very usefull and halpfull for me.
secondly, i apologize, my english is not so good, so i will try to make it short.

my problem is data injection by some of my costumers, from time to time iam getting wrong orders with wrong prices and details in it, this is abig problem for me, iam trying to encrypt the data but no sucsess.

can you please help me to encrypt the data and prevent injection ?
i have some js - PHP knoleg but i am not apro.

thank you for your help
stefan
webeye
WebMaster
 
Posts: 1
Joined: Tue Mar 16, 2010 5:24 am

Re: data injection

Postby Koibito » Sun Mar 21, 2010 9:18 pm

You could try a base 64 encode & decode:

http://www.webtoolkit.info/javascript-base64.html
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: data injection

Postby Stefko » Sun Mar 21, 2010 11:00 pm

Do a search for encrypting cookies.

StaticCart actually using encrypted cookies, it will add about 25% more bytes to each cookie making the cart hold less if the customer is using M$ IE. (NOPCart)
This wasn't an issue for StaticCart because the products are stacked atop each other within each cookie, so using encrypted cookies with IE the limit was around 45 items, well above 300 items for all other browsers.
StaticCart now can use localStorage if available,( on by default in all browsers ) with allows the cart to hold an unlimited item count.
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS


Return to Help: Cart / General

Who is online

Users browsing this forum: wuhuilin11 and 5 guests