RE: [PHP] scramble the code

From: Date: Thu, 05 Apr 2001 13:21:56 +0000
Subject: RE: [PHP] scramble the code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47254@lists.php.net to get a copy of this message
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:scott@abcoa.com] Sent: Thursday, April 05, 2001 8:07 AM To: php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#47254) next »