Welcome Guest, Not a member yet? Register   Sign In
Encrypt Problem
#6

[eluser]toopay[/eluser]
[quote author="JasmineFlower" date="1309865802"]Hi toopay,


How to avoid the /,&,% in encryption.

I need encryption & decryption(two way method).[/quote]

You doen'st need to use remap function then, just use urlencode() - urldecode() to wrap or transport your encrypted message.

Code:
// In your model :
$msg = $userid.$email;        
$encyptres = urlencode($this->encrypt->encode($msg));

// In your Confirmation controller method that accept the encrypted message :
function some_method($msg = '')
{
  if($msg == '') show_404();
  $res = $this->encrypt->decode(urldecode($msg));
  // Do something...
  //...
  // Give the redirect as a result
  redirect(($success == TRUE) ? 'success_controller' : 'failed_controller');
}


Messages In This Thread
Encrypt Problem - by El Forum - 07-04-2011, 06:34 AM
Encrypt Problem - by El Forum - 07-04-2011, 03:52 PM
Encrypt Problem - by El Forum - 07-04-2011, 11:15 PM
Encrypt Problem - by El Forum - 07-05-2011, 12:36 AM
Encrypt Problem - by El Forum - 07-05-2011, 01:55 AM
Encrypt Problem - by El Forum - 07-05-2011, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB