Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting bcrypt module error #1

Open
ashishsalunkhe opened this issue Sep 29, 2020 · 1 comment
Open

getting bcrypt module error #1

ashishsalunkhe opened this issue Sep 29, 2020 · 1 comment

Comments

@ashishsalunkhe
Copy link

import bcrypt
ModuleNotFoundError: No module named 'bcrypt'

Tried installing bcrypt through pip. Didn't work.

@MeesMeijer
Copy link

You can also use crypt:

import crypt
from hmac import compare_digest

password_hash = crypt.crypt(password)

if compare_digest(crypt.crypt(password, password_hash), password_hash):
    print("Password is Good !")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants