Skip to main content

Encrypted session interface for Flask 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

flask_enciphers-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

flask_enciphers-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_enciphers-0.1.0.tar.gz.

File metadata

  • Download URL: flask_enciphers-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flask_enciphers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 563d69ee83a502dc1b8e1719992ec58a60597e3909a5c1c19bc6f90982ed684d
MD5 c0f5210f9e926d5867a056e2a89cbf98
BLAKE2b-256 adb463a479a032c463efdedbef03f35e1bc462ef2efa28203905cf68ed04c15d

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on mjlad/flask-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 flask_enciphers-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_enciphers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d3471fe6b8b9e60dc8db4c50092bed0d552d4d30dac57eba11d80f32bfea4a
MD5 3caeea08385774cdcd0c40c4fbe95fd9
BLAKE2b-256 3f5cec85b82beb3b487715e4bbf91b6fae82377807924fd2f257224cc071275c

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on mjlad/flask-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