Welcome Guest, Not a member yet? Register   Sign In
mcrypt encode and decode
#1

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:
Code:
$this->load->library('encrypt');
$this->encrypt->set_cipher(MCRYPT_RIJNDAEL_128);
$this->encrypt->set_mode(MCRYPT_MODE_CBC);
$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:
Code:
$o = $this->encrypt->decode($o,$key);
Can anyone helps me?
Reply


Messages In This Thread
mcrypt encode and decode - by sasatozovic - 03-13-2016, 04:22 AM
RE: mcrypt encode and decode - by comp_nerd26 - 04-21-2016, 02:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB