It happens that it encrypts some records with the 'encryption' library before saving them, until there, all good.
I do the query and all the data is encrypted.
What I want is to remove the encryption in the controller, before putting them in the array and passing them to the view.
(Cards are encrypted from the database)
public function card_list()
{
$id_user = $this->tank_auth->get_user_id();
$this->db->where('id_user', $id_user);
$query = $this->db->get("cards");
$data = [];
foreach($query->result() as $r) {
$data[] = array(
$r->card_owner,
$r->card_number,
$r->card_mm,
$r->card_aa,
$r->card_tag,
);
}
}