title: How to convert a plain text password to SHA-1
body: <p>I am trying to allow users to update their password. Currently, when I store the updated password in the database, in looks like this.</p>
  
  <p>I am allowing users to update their own password, how do I get the current hash to the django default <code>sha1</code> hash.</p>
  
  <pre><code>password = hashlib.sha1(password).hexdigest()
  </code></pre>
  
  <p>output </p>
  
  <pre><code>be86dd8176c748e5a5676f3c7c32eeafe62ed764
  </code></pre>
  
  <p>expected output </p>
  
  <pre><code>pbkdf2_sha256$30000$6nrsbWJ7QoNg$Clt2K2iaucZJnm5Bx+h+H/Q5Tc/v08BB7qp4dZpZ/p8=
  </code></pre>