Need help with URL encoding

jeephpjeephp BeginnerLink Clerk
Hi,
I need some help with URL encryption or something similar. For example I have a URL http://www.myurl.com/search.php?iu=321xw1&di=wswe675511&v1=y&u=12qazxq but I do not want it to be displayed with the parameters rather I would like it to be displayed as http://www.myurl.com/search.php?id=eru3893Xwweu327zsdh347ueir3948

What is the best and the most secure way to do this in PHP, I am developing the site on Windows 2003 Enterprise Server Platform and hosting in IIS 6.0.

Does PHP have some inbuilt function to do this or I would have to use a 3rd party tool for this.

Any advice on this would be highly appreciated.

Thanks

Comments

  • PythonPython Forum Leader The Royal RAM
    Im not 100% sure as to what your trying to do... and also I dont think that this would be the best way but...

    You could do the search using the variables and then after the search is done then just md5() each var then piece them altogether... then do md5() on the receiving side to decrypt them bakc to what they would be.

    If explain a bit more I may write up a little code...

    The Royal Ram

  • dabossdaboss WP V.I.P. ''The Boss'' Administrator
    p, i believe you cannot decrypt an md5 string... md5 is a one way encryption tool...

    in any event, jeephp, i also have problems understanding what you want to do... please elaborate...
Sign In or Register to comment.