Connecting Tech Pros Worldwide Help | Site Map

....best way to encrypt a form posted URL string?

Julia Briggs
Guest
 
Posts: n/a
#1: Jul 17 '05
Could someone post some examples with explanations of how to
encode/encrypt a form posted URL and then decrypt it, so that it is
very hard or currently impossible to break?

so, something like

http://localhost/page.php?product=12&price=4.50

would appear obfuscated in my browser display area like:

http://localhost/page.php?Ur7@7892yRyw&wq84y@$y8@$ (or whatever)

Thanks for anyone's help!

Julia

J.O. Aho
Guest
 
Posts: n/a
#2: Jul 17 '05

re: ....best way to encrypt a form posted URL string?


Julia Briggs wrote:[color=blue]
> Could someone post some examples with explanations of how to
> encode/encrypt a form posted URL and then decrypt it, so that it is
> very hard or currently impossible to break?
>
> so, something like
>
> http://localhost/page.php?product=12&price=4.50
>
> would appear obfuscated in my browser display area like:
>
> http://localhost/page.php?Ur7@7892yRyw&wq84y@$y8@$ (or whatever)[/color]

You use sessions and the "Ur7@7892yRyw&wq84y@$y8@$" would be the session id
and nothing is encoded/decrypted, you have a file or entry in a database which
tells info about the session (stored locally on the server). You could even
send the session id as an cookie, that way you wouldn't even get anything
after the page.php.

http://se.php.net/manual/en/ref.session.php


//Aho
NSpam
Guest
 
Posts: n/a
#3: Jul 17 '05

re: ....best way to encrypt a form posted URL string?


Julia Briggs wrote:[color=blue]
> Could someone post some examples with explanations of how to
> encode/encrypt a form posted URL and then decrypt it, so that it is
> very hard or currently impossible to break?
>
> so, something like
>
> http://localhost/page.php?product=12&price=4.50
>
> would appear obfuscated in my browser display area like:
>
> http://localhost/page.php?Ur7@7892yRyw&wq84y@$y8@$ (or whatever)
>
> Thanks for anyone's help!
>
> Julia
>[/color]
use https, thats the level to work at
Henk Verhoeven
Guest
 
Posts: n/a
#4: Jul 17 '05

re: ....best way to encrypt a form posted URL string?


NSpam wrote:[color=blue]
> Julia Briggs wrote:
>[color=green]
>> Could someone post some examples with explanations of how to
>> encode/encrypt a form posted URL and then decrypt it, so that it is
>> very hard or currently impossible to break?
>>
>> so, something like
>>
>> http://localhost/page.php?product=12&price=4.50
>>
>> would appear obfuscated in my browser display area like:
>>
>> http://localhost/page.php?Ur7@7892yRyw&wq84y@$y8@$ (or whatever)
>>
>> Thanks for anyone's help!
>>
>> Julia
>>[/color]
> use https, thats the level to work at[/color]

I agree with Julia Briggs: use a session or database.

Even with https a cart should never allow the user to set the price he
will pay in an url or form. So the url should be
http://localhost/page.php?product=12, then the code on the server will
retrieve the data of product 12 and show the price from that data.

Greetings,

Henk Verhoeven,
www.metaclass.nl
Joker7
Guest
 
Posts: n/a
#5: Jul 17 '05

re: ....best way to encrypt a form posted URL string?



"Julia Briggs" <julia4_me@yahoo.com> wrote in
message
news:1111270347.289481.274610@f14g2000cwb.googlegr oups.com...
: Could someone post some examples with
explanations of how to
: encode/encrypt a form posted URL and then
decrypt it, so that it is
: very hard or currently impossible to break?
:
: so, something like
:
: http://localhost/page.php?product=12&price=4.50
:
: would appear obfuscated in my browser display
area like:
:
:
http://localhost/page.php?Ur7@7892yRyw&wq84y@$y8@$
(or whatever)
:
: Thanks for anyone's help!
:
: Julia


http://cert.startcom.org/
Secure Sockets Layer

Chris
:


Closed Thread