I have an application that that needs an id to be passed as part of the URL. Due to security concerns I need to encrypt the id.
Current Scenario -
http://mysite/mycontroller/myfunction/5
Expected solution -
http://mysite/mycontroller/myfunction/XcvTr4YtddfRkouyt
The encrypted id will be decoded and used later.
I tried using the encrypt helper..the problem is that special characters are introduced and + or / is part of the encrypted string. This is throwing up all types of problems.
I have also tried to use htmlentities, urlencode, rawurlencode, htmlspecialcharacters as wrappers after encryption. Nothing seems to work as each of these allow the use of ‘/’.
Can someone guide me on what to do ?
Thanks in advance.
