Skip to main content

Crypto Kafka serialize python library

Project description

Latest Version Latest version Documentation Status


Kser module allow you to encrypt and decrypt messages in kafka using libsodium.


First, install kser-crypto using pip:

$ pip install kser-crypto[pykafka]


Only kafka-python is implemented at the moment.


Make sure to have the environment variable KSER_SECRETBOX_KEY definded.


from kser_crypto.python_kafka.consumer import CryptoConsumer

consumer = CryptoConsumer(config=dict(...), topics=[...])


import time
from uuid import uuid4
from kser.schemas import Message
from kser_crypto.python_kafka.producer import CryptoProducer

producer = CryptoProducer(config=dict(...))
producer.send("test", Message(uuid=str(uuid4()), entrypoint="myTest"))


  • Python 3.x
  • Libsodium


Licensed under MIT license (LICENSE or

Project details

Download files

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

Files for kser-crypto, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size kser-crypto-0.1.8.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page