Safe Querystring Encoding and Decoding??

digitalpower

BANNED
Joined
Dec 16, 2008
Messages
303
Reaction score
70
I was wondering if the following is possible...

1) A textbox is on the screen and someone enters text like "Sample Text".
2) The text "Sample Text" gets encoded safely so it can appear in a querystring and not be tampered with.
3) Text can be decoded safely from the querystring. If the text is tampered with in any way, the decoding process will know this and will raise a flag / display an error etc.

How can I do this in PHP?
 
try be more specific :) You can base64 encode/decode a string, but you need to compare it against something. Follow my thought ?
 
learn md5 with php, this may help you
 
Back
Top