Just did this sort of thing and my solution might not be the best or the
most secure but it does scramble the code. I really wasn't trying to make
an unbreakable query string, just something that would be a deterrent. All
I did was use base64_encode and decode like:
Incoming:
$dec = base64_decode($TAIL);
The on the return to the browser:
$TAIL = base64_encode($dec);
It is easy and works pretty good, producing a string that does not make a
lot of sense to the regular user. Yes someone can probably reverse it if
they wanted to. But someone can also brute force a lot of other encryption
algorithms as well.
-Bob
-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] scramble the code
For the data in the "post", when the user type in the data and press the
submit button, the data is then carry over to the nextpage.html. In the URL
bar, I can clearly see the data, so is there to scramble hte data where
anyone won't see it in the URL box at the top of the web browser?
Thanks,
Scott
<html>
<form name='action_login' method='post' action='nextpage.html'>
<input type='text' name='test'>
<input type='submit' value='login' name='action_login'>
</form>
</html>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]