Skip to main content
Latest Version Latest version Documentation Status https://img.shields.io/badge/license-MIT-blue.svg Tests Lint Coverage badge

kser-crypto

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

Quickstart

First, install kser-crypto using pip:

$ pip install kser-crypto[pykafka]

Examples

Make sure to have the environment variable KSER_SECRETBOX_KEY definded.

Consumer

from kser_crypto.python_kafka.consumer import CryptoConsumer

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

Producer

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"))
time.sleep(1)

Requirements

  • Python 3.x

  • Libsodium

Documentations

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)

Metadata

Release files for kser-crypto 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kser-crypto 0.1.13
File Size Uploaded Provenance
kser_crypto-0.1.13.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kser-crypto 0.1.13
File Interpreter ABI Platform
kser_crypto-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / kser_crypto-0.1.13.tar.gz

Download URL kser_crypto-0.1.13.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
565b0cd4587173948036829cd9c4b93fd6fb691cf9f8909f866621f7778b8522
BLAKE2b-256 checksum
How to use checksums
5fb85a4b3b289eb507896a9497b02f1cffa9daa95d743d3af5cdc77ca1b3bb4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / kser_crypto-0.1.13-py3-none-any.whl

Download URL kser_crypto-0.1.13-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed46d425122d057e5556a8a9ef47451cd7dbba34d5505b0373fc492dea6484c
BLAKE2b-256 checksum
How to use checksums
9e923bbf5fb3c2b2b614a94864d180f9f4979c5ae30b4f3c22cbeae5852e0beb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for kser-crypto 0.1.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page