Skip to main content

Flask client side session serializer, using Sodium SecretBox authenticated encryption

Project description

This is a Flask session serializer that encrypts the session using crypto_secretbox. Flask-SecretBox-Session is a drop-in replacement for the default Flask session serializer.

Usage

from secretbox_session import SecretboxCookieSessionInterface app.session_interface = SecretboxCookieSessionInterface()

To override the key used for storing the timestamp for avoiding clashes with your own session objects, you can use the timestamp_key named argument, like so:

app.session_interface = SecretboxCookieSessionInterface(timestamp_key=’__timestamp’)

The default value of timestamp_key is ‘__session_timestamp__’.

License

Distributed under the [2-clause BSD](http://opensource.org/licenses/BSD-2-Clause).

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-secretbox-session-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file flask-secretbox-session-0.1.0.tar.gz.

File metadata

File hashes

Hashes for flask-secretbox-session-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d28ba6d49f67ddef8bb0b3a25034bd9609166ba209433d7e2f09538838a0a6f
MD5 83373acedb7abeb926f3ec004ec0875f
BLAKE2b-256 d702819eb33b606f41c1f7a2f33af0233bdb57e42debd046189dfb8c90ee89a4

See more details on using hashes here.

Supported by

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