dArk10R4

Results 2 comments of dArk10R4

``` import bcrypt import re import secrets class PasswordUtility: @staticmethod def hash_password(password: str) -> bytes: return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt(12)) @staticmethod def check_password(plain_text_password: str, hashed_password: bytes) -> bool: return bcrypt.checkpw(plain_text_password.encode('utf-8'), hashed_password) @staticmethod...

it is fixed after installing like this: `pip install git+https://github.com/pyca/bcrypt.git#egg=bcrypt`