title: How to use Bcrypt to encrypt passwords in Django
body: <p>I am trying to use Bcrypt to encrypt passwords that users provide upon registration and then use Bcrypt to validate a password a user provides upon login against the hashed version stored in the database. </p>
  
  <p>There is some pretty good documentation about how to install Bcrypt on via the Django <a href="https://docs.djangoproject.com/en/1.8/topics/auth/passwords/" rel="noreferrer">docs</a>, but they don't actually show you how to use Bcrypt to hash passwords or use other commands. </p>
  
  <p>Do you need to import Brcrypt from somewhere? If so, what is the correct syntax for it? What is the syntax for hashing passwords and comparing hashed passwords against non-hashed passwords? </p>
  
  <p>I installed the Bcrypted library in the settings.py file and also installed Bcrypt via pip. What else do I need to do to use Bcrypt?</p>