php - Codeigniter decode not working -
i making little login system using php inside of codeigniter framework. using encryption class encode password, store in database. on login, finds encrypted password using username, matches against password entered. passwords getting encoded during registration. , in below code, have been able print out encoded password database, fails out whenever run through decode. no error message, nothing. public function check_pw(){ //post username , password database $data['username'] = $this->input->post('username'); $data['password'] = $this->input->post('password'); $this->load->model('lindsdata'); //encoded password returned database - working $return_data = $this->lindsdata->password($data); //$return_data = $this->encrypt->decode($return_data); //print_r shows $return_data hold encrypted password //but when uncomment line decode in it, $return_data print_rs nothing. print_...