Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heroku/kombu-fernet-serializers

Symmetrically encrypted serializers for Kombu
https://github.com/heroku/kombu-fernet-serializers

Last synced: about 2 months ago
JSON representation

Symmetrically encrypted serializers for Kombu

Awesome Lists containing this project

README

        

========================
Kombu Fernet Serializers
========================

This library registers a set of `Kombu`_ serializers which take those built into
Kombu and symmetrically encrypts them using `Fernet`_.

The encryption key is accessed via the `KOMBU_FERNET_KEY` environment variable.
To set the encryption key::

import os
from cryptography.fernet import Fernet

key = Fernet.generate_key()
os.environ['KOMBU_FERNET_KEY'] = key

To try it out, start a redis server and from the `example` directory, run::

pip install celery redis
celery -A tasks worker

Then from another shell::

python -c "from tasks import add; add.delay(1, 2)"

.. _`Kombu`: http://kombu.readthedocs.org/en/latest/
.. _`Fernet`: http://cryptography.readthedocs.org/en/latest/fernet/
.. _`Celery`: http://celery.readthedocs.org/en/latest/