@classmethod
    def encrypt_password(cls, plaintext_password):
        if plaintext_password:
            return bcrypt.generate_password_hash(plaintext_password, 8)

        return None
Check if user have permission (of object)
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/user/models.py/User.encrypt_password--crossover with--dataset/ETHPy150Open lambdalisue/django-permission/src/permission/logics/groupin.py/GroupInPermissionLogic.has_perm