Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre>def _bcrypt(hash_value, password):
- """Check if ``hash_value`` and ``password`` match using bcrypt method."""
- hash_value = hash_value.encode("ascii")
- password = password.encode(<span class="skimlinks-unlinked">config.get("encoding</span>tock"))
- return bcrypt.checkpw(password, hash_value)
- </pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement