I have created a signup form using the codeigniter encryption library to store the users passwords as follow:
$encrypted_password = $this->encrypt->encode($this->input->post('password'));
I have notice that each time we encrypt (event if we encrypt the same password) the encryption function it produce a different output.
My question is the follow: What is the best way to compare the two encrypted passwords when the user try to login on the system as we know that each time we encrypt we get a different encrypted string?