• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mcrypt encode and decode

I am using codeigniter 2x, and I need to decode string I have been given, and that string containes array. For that I got a key, iv, cipher and mode.
I figure out how to set key, cipher and mode:
$key = 'mysomekey';
But I can't figure out how to use iv I have been give, and decode that string.
On net I did found only this:
$o = $this->encrypt->decode($o,$key);
Can anyone helps me?


This is correct. Just ensure you set the same params in setting/retreiving the encryption string, that way you return the data as is. I use this same method when encrypting get in url sending to emails Smile

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.