title: sha256 hash password in db adds extra backslashes when I retrieve it from database - psycopg2/python
body: <p>I am currently hashing a user email address and comparing the hash with the email address hashes stored in postgres.</p>
  <p>The hashes stored in postgres return extra backslashes for the hashed string when I execute query from python.</p>
  <pre><code>query = &quot;SELECT email_addr_hash FROM TABLE WHERE email_addr_hash_in_db = %s::character varying&quot;
  cur.execute(query,(input_addr_hash,))
  result = cur.fetchall()
  </code></pre>
  <p>The query does not return anything cos the hash from db that I retrieve looks like this:</p>
  <pre><code>[('s$O+\\x1d\\xd0\\xac8\\xccU\\xeeW^2|\\\\{\\x0bS.G}h\\xf0S\\x0f\\xbd\\xd4\\xda\\xfc\\x00\\x88',)]
  </code></pre>
  <p>The hash in python to compare :</p>
  <pre><code>b's$O+\x1d\xd0\xac8\xccU\xeeW^2|\\{\x0bS.G}h\xf0S\x0f\xbd\xd4\xda\xfc\x00\x88'
  </code></pre>
  <p>Please guide me if I am doing the comparison right and how to get rid of off backslashes</p>