473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

Jul 17 '05 #1
4 3541
Julia Briggs wrote:
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)


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
Jul 17 '05 #2
Julia Briggs wrote:
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

use https, thats the level to work at
Jul 17 '05 #3
NSpam wrote:
Julia Briggs wrote:
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

use https, thats the level to work at


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
Jul 17 '05 #4

"Julia Briggs" <ju*******@yahoo.com> wrote in
message
news:11**********************@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
:
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
4
by: Spikinsson | last post by:
I'm looking for a good decrypt/encrypt function, all I want is a function in this form: char* encrypt(char* normal) { ... return encrypted; } and
10
by: Javier Gomez | last post by:
I have a table with 15.000 records. How can encrypt all information if after will shown in a form (text box)decryted ????? Thanks in advance Javier Gomez
20
by: Drebin | last post by:
It's a long story really, but the bottom line is we need to encrypt or obfuscate a clear-text 9-digit SSN/taxpayer ID into something less than 21 characters. It doesn't need to be super-secure,...
7
by: Matthias S. | last post by:
Hi, I had a look at the vast information on encryption in the MSDN and got pretty confused. All I want to do is to encrypt a string into an encrypted string and later decrypt that (encrypted)...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
5
by: rockdale | last post by:
Hi, all: I have a website with its own login page. Now one of my clients want their employees log into my website from their website. They want to have their login page (look and feel are...
2
by: olafinsbraaten | last post by:
I am using column-level encryption (ENCRYPT_CHAR, DECRYPT_CHAR) to protect selected columns in DB2 LUW v.9.1 and v.9.5 on Linux. The ultimate goal is to support the requirements put forward in...
4
by: Brian | last post by:
HI, I have two sets of data, the largest set of data contains 370 rows... both sets only have two columns. I want to be able to distribute the data with my applaction. The other option, would be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.