Question 31
Answer the given subquestions.
Consider the following Flask application configuration for Flask-Security with the User and Role models properly defined with flask-sqlalchemy
class LocalDevelopmentConfig(Config): SQLALCHEMY_DATABASE_URI = "sqlite:///securedb.sqlite3" DEBUG = True SECRET_KEY = "this-is-a-secret-key" SECURITY_PASSWORD_HASH = "bcrypt" SECURITY_PASSWORD_SALT = "this-is-a-salt-key" WTF_CSRF_ENABLED = False SECURITY_TOKEN_AUTHENTICATION_HEADER = "Authentication-Token"A user registration request is made with the password "mypassword123". Based on this configuration, which of the following statements is MOST ACCURATE?
The password will be stored as plain text "mypassword123" in the database because WTF_CSRF_ENABLED = False
The password will be hashed using bcrypt with the salt "this-is-a-salt-key" before being stored in the database
The password will be hashed using SHA-256 algorithm since no specific hashing method is configured
The password will be encrypted using the SECRET_KEY and stored in the session only