Advertisement
Guest User

www

a guest
May 11th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <pre>def _bcrypt(hash_value, password):
  2. """Check if ``hash_value`` and ``password`` match using bcrypt method."""
  3. hash_value = hash_value.encode("ascii")
  4. password = password.encode(<span class="skimlinks-unlinked">config.get("encoding</span>tock"))
  5. return bcrypt.checkpw(password, hash_value)
  6. </pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement