title: I am getting wrong result in python when I trying to compare the two strings in python
body: <p>Why I am getting wrong result when I compare the two strings .</p>
  
  <pre><code>if password==en_pass:
              log.info("##### client credentials are OK ####")
  else:
       print "credentials are wrong "
  </code></pre>
  
  <p>i am getting the result which is in else block </p>
  
  <p>Here is the my log message:</p>
  
  <pre><code>got the password :bmF2ZWVu  , encoded password :bmF2ZWVu
  </code></pre>
  
  <p>where encoded password is from <code>base64</code> , that is i got that by using encodestring method in <code>base 64</code> module.</p>