flask.Flask.secret_key¶
-
Flask.secret_key¶ If a secret key is set, cryptographic components can use this to sign cookies and other things. Set this to a complex random value when you want to use the secure cookie for instance.
This attribute can also be configured from the config with the
SECRET_KEYconfiguration key. Defaults toNone.