Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/heroku/kombu-fernet-serializers
- Owner: heroku
- License: mit
- Created: 2014-05-27T21:52:51.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T17:56:37.000Z (5 months ago)
- Last Synced: 2024-10-04T06:23:22.114Z (3 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 28
- Watchers: 99
- Forks: 13
- Open Issues: 15
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- starred-awesome - kombu-fernet-serializers - Symmetrically encrypted serializers for Kombu (Python)
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 Fernetkey = Fernet.generate_key()
os.environ['KOMBU_FERNET_KEY'] = keyTo try it out, start a redis server and from the `example` directory, run::
pip install celery redis
celery -A tasks workerThen 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/