Encrypted session interface for Quart using enciphers.
Replaces Quart's default signed cookie session with a fully encrypted one.
pip install quart-enciphersfrom quart import Quart, session
from quart_enciphers import EnciphersSession
app = Quart(__name__)
EnciphersSession(app)
@app.route("/login")
async def login():
session["user_id"] = 1
return "logged in"from quart_enciphers import EnciphersSession
es = EnciphersSession()
def create_app():
app = Quart(__name__)
es.init_app(app)
return app| Key | Type | Default | Description |
|---|---|---|---|
ENCIPHERS_STEP |
int |
random | Encryption step |
ENCIPHERS_KEY |
int |
random | Secret key |
ENCIPHERS_KEY_ENV |
str |
None | Environment variable for key |
If no configuration is provided, random values are generated at startup.
Apache-2.0 — Copyright 2026 Mejlad Alsubaie