Encrypted session interface for Quart using enciphers
Project description
quart-enciphers
Encrypted session interface for Quart using enciphers.
Replaces Quart's default signed cookie session with a fully encrypted one.
Installation
pip install quart-enciphers
Usage
from 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"
Application Factory Pattern
from quart_enciphers import EnciphersSession
es = EnciphersSession()
def create_app():
app = Quart(__name__)
es.init_app(app)
return app
Configuration
| 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.
License
Apache-2.0 — Copyright 2026 Mejlad Alsubaie
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quart_enciphers-0.1.0.tar.gz.
File metadata
- Download URL: quart_enciphers-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47cb4726b64142629a78e2e61717d50f451fa908bb4069fbc1d39435ea5cda38
|
|
| MD5 |
c0baea88eab2f82be56c17f55aed7b87
|
|
| BLAKE2b-256 |
c82c9f5764526a35406d26b3694b24e32dd10c92ed55b04b872f60c73022702f
|
Provenance
The following attestation bundles were made for quart_enciphers-0.1.0.tar.gz:
Publisher:
publish.yml on mjlad/quart-enciphers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quart_enciphers-0.1.0.tar.gz -
Subject digest:
47cb4726b64142629a78e2e61717d50f451fa908bb4069fbc1d39435ea5cda38 - Sigstore transparency entry: 1808675385
- Sigstore integration time:
-
Permalink:
mjlad/quart-enciphers@518bb548ecaa8bad4081e7fc86f14bdc61816300 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mjlad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@518bb548ecaa8bad4081e7fc86f14bdc61816300 -
Trigger Event:
push
-
Statement type:
File details
Details for the file quart_enciphers-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quart_enciphers-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fbd1428d6bb4dbb0dbb4a95c59bcb47a14d8ee87a599f99a575ceef41871ac4
|
|
| MD5 |
2372ee80afc550526736f277be5a6a12
|
|
| BLAKE2b-256 |
c24aa4041d49ace27150707a8c66eec4ad5df075d7149d156dd369a3ebd298b6
|
Provenance
The following attestation bundles were made for quart_enciphers-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on mjlad/quart-enciphers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quart_enciphers-0.1.0-py3-none-any.whl -
Subject digest:
3fbd1428d6bb4dbb0dbb4a95c59bcb47a14d8ee87a599f99a575ceef41871ac4 - Sigstore transparency entry: 1808675434
- Sigstore integration time:
-
Permalink:
mjlad/quart-enciphers@518bb548ecaa8bad4081e7fc86f14bdc61816300 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mjlad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@518bb548ecaa8bad4081e7fc86f14bdc61816300 -
Trigger Event:
push
-
Statement type: