@property<EOL><INDENT>def engine(self):<DEDENT>
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>from cryptography.fernet import Fernet<EOL>from cryptography.hazmat.backends import default_backend<EOL>from cryptography.hazmat.primitives import hashes<EOL>digest = hashes.Hash(hashes.SHA256(), backend=default_backend())<EOL>digest.update(current_app.config['<STR_LIT>'].encode('<STR_LIT:utf8>'))<EOL>fernet_key = urlsafe_b64encode(digest.finalize())<EOL>self._engine = Fernet(fernet_key)<EOL><DEDENT>return self._engine<EOL>
Get cryptographic engine.