title: AES Decrypted password does not match to plain password
body: <p>Sorry for if this question has been asked but i couldn't find.</p>
  
  <p>I have an AES 128 encrypted password,</p>
  
  <pre><code> 0oebFpht20TMB20alRs4IMMMgIeMObvYsD1/8rUtyq8= 
  </code></pre>
  
  <p>I did it decrypt,</p>
  
  <pre><code>$decrypt_password = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $ciphertext, MCRYPT_MODE_CBC, $iv);
  
  echo $decrypt_password;
  output:   Red@(Eye4u)
  </code></pre>
  
  <p>i am getting correct plain password but when i am trying to compare decrypted password with another plain password, it does not match.</p>
  
  <pre><code>$another_pass = "Red@(Eye4u)";
  
  if($another_pass == $decrypt_password) {
        //Not going there
  }
  else if(strcmp($another_pass, $decrypt_password) == 0) {
        //Not going there
  }
  
  else if(strcmp($another_pass, $decrypt_password)){
        //Performing this
  }
  </code></pre>
  
  <p>I tried to check the return value,</p>
  
  <pre><code>echo strcmp($another_pass, $decrypt_password);
  output: -5
  
  echo strcmp($decrypt_password, $another_pass);
  output: 5
  </code></pre>
  
  <p>so please help how to solve this problem, why it is returning difference where both password is same.</p>