Codeigniter Password Decryption Codeigniter Password Decryption codeigniter codeigniter

Codeigniter Password Decryption


Codeigniter by default uses $config['encryption_key'] which you can find it in config file, for cryptographic process !

so for decrypting it , you have to first have this key ! then you can decrypt it as follows :

$this->load->library('encrypt');$encrypted_password = 'r5WEX++ZKggg7d6fQYAZfFOm/z3nTJmxQA00zVWhhn7cvmrSrIm/NYI51o9372qf6JtYQEil72b4JzszVo+oPg==';$key = 'secret-key-in-config';$decrypted_string = $this->encrypt->decode($encrypted_password, $key);

and after that you can encrypt it again !