How to encrypt password using Python Flask-Security using bcrypt?
How to encrypt password using Python Flask-Security using bcrypt? Question: I’m trying to utlise the standard basic example in the docs for Flask-Security and have made it work except for the password being stored in plaintext. I know this line: user_datastore.create_user(email=’[email protected]’, password=’password’) I could change to: user_datastore.create_user(email=’[email protected]’, password=bcrypt.hashpw(‘password’, bcrypt.gensalt())) But I thought Flask-Security took care …