Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quart_enciphers-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quart_enciphers-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for quart_enciphers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47cb4726b64142629a78e2e61717d50f451fa908bb4069fbc1d39435ea5cda38
MD5 c0baea88eab2f82be56c17f55aed7b87
BLAKE2b-256 c82c9f5764526a35406d26b3694b24e32dd10c92ed55b04b872f60c73022702f

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_enciphers-0.1.0.tar.gz:

Publisher: publish.yml on mjlad/quart-enciphers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quart_enciphers-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quart_enciphers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fbd1428d6bb4dbb0dbb4a95c59bcb47a14d8ee87a599f99a575ceef41871ac4
MD5 2372ee80afc550526736f277be5a6a12
BLAKE2b-256 c24aa4041d49ace27150707a8c66eec4ad5df075d7149d156dd369a3ebd298b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_enciphers-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mjlad/quart-enciphers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page