Welcome Guest, Not a member yet? Register   Sign In
Login with the encryption class
#3

[eluser]PQMailer[/eluser]
Yes you are right. I found a nice function.
Code:
function _prep_password($password)
{
     return sha1($password.$this->config->item('encryption_key'));
}

But if i use this it won't work i think, because the encrypted string always looks different.

Code:
$this->db->where('email' => $this->encrypt->encode($email))

Because of that i decoded all the e-mail addresses with foreach.

Code:
foreach ( $control as $value ):
array_push( $email_decode, $this->encrypt->decode( $value['email'] ) );
endforeach;


Messages In This Thread
Login with the encryption class - by El Forum - 04-20-2011, 03:47 AM
Login with the encryption class - by El Forum - 04-20-2011, 04:44 AM
Login with the encryption class - by El Forum - 04-20-2011, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB