Welcome Guest, Not a member yet? Register   Sign In
Use encrypt helper,how to
#1

[eluser]chmod[/eluser]
I use CI's encrypt helper.

Code:
$datetime = date('Y-m-d H:i:s',time());
$keycode = $game_id.'|'.$area_id.'|'.$datetime;
$sid = $this->encrypt->encode($keycode);         $this->session->set_userdata('sid',$sid);


and the result of $sid maybe include following character :
space
+
=

when I use get pass $sid,the space character will be translate:
hexadecimal ,so the encrypt result will not equal.

If i want use enctypt helper ,but wipe out the space or + or =,how can I do?


Messages In This Thread
Use encrypt helper,how to - by El Forum - 06-17-2008, 11:16 AM
Use encrypt helper,how to - by El Forum - 06-17-2008, 11:22 AM
Use encrypt helper,how to - by El Forum - 06-17-2008, 11:26 AM
Use encrypt helper,how to - by El Forum - 06-17-2008, 11:28 AM
Use encrypt helper,how to - by El Forum - 06-17-2008, 11:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB