Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


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__'.


Distributed under the [2-clause BSD](

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask-secretbox-session-0.1.0.tar.gz (1.7 kB) Copy SHA256 Checksum SHA256 Source Oct 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting