r/PythonProjects2 • • Sep 24 '26

Resource I built ChaosCrypt-Hybrid: A Post-Quantum (NIST ML-KEM) + AES-256-GCM Hybrid Encryption Library in Python

0 Upvotes

Hi r/PythonProjects2!

A few days ago, I shared an early prototype of this project here, and the feedback was incredible (it even hit the Top 6 posts of the day!). I’ve taken your advice to heart, significantly upgraded the codebase, added comprehensive documentation, and built a proper CLI.

With the "Harvest Now, Decrypt Later" threat becoming a reality, I wanted to build a practical, open-source example of Crypto-Agility.

🔐 What is ChaosCrypt-Hybrid?
It’s a Python library that implements a hybrid encryption scheme, combining classical and post-quantum algorithms to ensure data remains secure even against future quantum computers.

✨ Key Features:

  • NIST FIPS 203 Compliant: Uses ML-KEM-768 (formerly Kyber) for quantum-resistant Key Encapsulation Mechanism (KEM).
  • Symmetric Payload Encryption: Uses AES-256-GCM for fast, authenticated data encryption (quantum-resistant due to the 256-bit key size).
  • Crypto-Agile Architecture: The API is abstracted. You can swap the underlying KEM algorithm without changing your application logic.
  • Security-First Design: Implements constant-time comparison principles to mitigate basic timing attacks (with clear documentation on Python's inherent GC limitations).
  • Fully Tested & Documented: Includes a robust pytest suite, a SECURITY.md, CONTRIBUTING.md, and a basic_usage.py example.

💻 Quick Example:

from chaoscrypt import HybridCipher


# 1. Initialize the hybrid engine
cipher = HybridCipher(algorithm="ML-KEM-768")


# 2. Generate keys and encrypt a message
public_key, private_key = cipher.generate_keypair()
ciphertext, encapsulated_key = cipher.encrypt(b"Top Secret Data", public_key)


# 3. Decrypt the message
decrypted_data = cipher.decrypt(ciphertext, encapsulated_key, private_key)
print(decrypted_data) # Output: b"Top Secret Data"

🙏 Seeking Your Feedback:
I built this primarily as a deep-dive learning project into post-quantum cryptography and secure software design. I would highly appreciate your code reviews and thoughts on:

  1. Are there any edge cases or API design flaws I missed?
  2. How would you improve the constant-time guarantees in a Python environment?
  3. Any suggestions for the upcoming Rust rewrite of the core engine?

🔗 Links:

Thank you for your time and the amazing support this community provides!


r/PythonProjects2 • • Sep 24 '26

FoxCode — An ultra-fast, zero-dependency HTML compiler engine in pure Python

Post image
0 Upvotes

r/PythonProjects2 • • Sep 23 '26

CutCutCodec: Streamlined Video Processing – A Signal Processing Oriented MoviePy Alternative

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Sep 23 '26

I built BOOTH, a lightweight, zero-dependency, provider-agnostic reliability layer for LLM applications

1 Upvotes

I built BOOTH, a lightweight, zero-dependency, provider-agnostic reliability layer for LLM applications.

BOOTH (boothpy) is an open-source Python library that sits between an LLM call and your application.

The idea is simple: instead of blindly accepting the first model response, BOOTH checks it for ambiguity and uncertainty. If the response doesn't pass the checks, it can send the model the reason and ask it to reconsider.

It also supports checking responses against evidence from an application's existing RAG pipeline.

It's currently in beta, with 200+ automated tests, sync/async support, validators, structured results, and no runtime dependencies.

I've tested it with Groq so far. I'm now interested in seeing how the approach behaves with other models/providers and where the idea falls short.

I'd especially appreciate feedback from people building LLM applications: does this solve a problem you actually have, or am I overengineering something that should be handled differently?

GitHub: https://github.com/Vedantgitbot/booth

PyPI: https://pypi.org/project/boothpy/

MIT licensed.


r/PythonProjects2 • • Sep 23 '26

Built a post-quantum crypto lib in Python (ML-KEM + AES). Feedback?

0 Upvotes

Hi everyone,

I've been working on a personal project called ChaosCrypt-Hybrid, a research-grade post-quantum cryptographic library in Python. My goal was to implement the new NIST standards while paying special attention to real-world implementation flaws, specifically side-channel attacks.

Key features I've implemented:

- 🛡️ NIST FIPS 203 (ML-KEM-768) for quantum-resistant key encapsulation.

- 🔒 AES-256-GCM for authenticated symmetric encryption.

- ⏱️ Constant-time operations to mitigate timing attacks.

- 🧪 36 comprehensive tests, including 13 dedicated timing attack resistance tests.

- 📊 Benchmarks showing ~8,500 ops/sec for key generation and ~497 MiB/s for AES-256-GCM.

I've also documented the threat model using the STRIDE methodology in the repo.

GitHub: https://github.com/uslumurat405-oss/chaoscrypt-hybrid

I'm sharing this here because I would highly value feedback from this community, especially regarding:

  1. Are there any edge cases in my constant-time implementation that I might have missed?
  2. Any suggestions for improving the hybrid key derivation process?

Thanks in advance for your time and insights!


r/PythonProjects2 • • Sep 23 '26

Piveo: version 2.5.7

1 Upvotes

Bonjour,

Voici les modifcations

- Correction d'un bug lors des changements de personnes (réaparition des anciennes images)

- les portraits ont été remplacés par des photos créées abec ChatGPT.

- Le paquet piveo_2.5.7-1_amd64.deb a été testé avec succès sur les versions Live USB d'Ubuntu 24.04 LTS et Ubuntu 26.04 LTS.

Documentation

Téléchargements


r/PythonProjects2 • • Sep 23 '26

Connecting python app to perchance.org

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Sep 23 '26

Hey fellas Quick question !

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Sep 23 '26

Hey, I have learnt Python, numpy, pandas, plt, sns...

Thumbnail reddit.com
1 Upvotes

Help me decide what to learn next and what projects I should make?


r/PythonProjects2 • • Sep 22 '26

I built a well-working open source Auto clicker in Python (Dynamic Macro Engine)

Post image
2 Upvotes

r/PythonProjects2 • • Sep 22 '26

gignore-cli

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Sep 22 '26

Info yasbd-lib v1.0.0 is out. Here's how beta finally ended.

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Sep 21 '26

Slippery Penguin, an SUID Enumerator in Python!

2 Upvotes

Hello! :3

I wanted to share a program I've been working on, named Slippery Penguin. It is an SUID enumerator that also checks capabilities, runs strings, and strace on binaries and then checks results against both a user customizable flags list and integrated, updated GTFOBins data.

It takes all of your results and formats them into JSON logs as well, or can also be ran without leaving logs. :)

The github is https://github.com/stlynnxx/Slippery-Penguin

If you made it this far, thanks for your time :)


r/PythonProjects2 • • Sep 21 '26

Info Made my own image format.

Post image
8 Upvotes

Yes, it may sound strange: it makes no sense! BUT, my goal was more of a joke, although it may well be suitable as an alternative to other formats in extreme cases. This format contains only 100\~ lines of code, but it is quite efficient in itself (compared to PNG lol, although I think everything will weigh many times less compared to PNG).

You can read a little more about it on GitHub, since I'm honestly too lazy to write everything here. (Exactly made in Python).

https://github.com/pmldude/Portable-Middle-Link-


r/PythonProjects2 • • Sep 21 '26

POLL Help

Thumbnail drive.google.com
1 Upvotes

I need to understand this please


r/PythonProjects2 • • Sep 20 '26

I built a small Python app to make my everyday commands easier to manage

Thumbnail reddit.com
2 Upvotes

r/PythonProjects2 • • Sep 20 '26

Python Project Ideas

8 Upvotes

anyone got any python project ideas? so far i've been working on simple projects like:
- timezone app
- username generator (tiktok)
- height calculator

but i keep getting brainfarts on what to work on now lol.


r/PythonProjects2 • • Sep 20 '26

Drop-in django app to serve a decent documentation site

Thumbnail mdjango.chesselink.com
2 Upvotes

r/PythonProjects2 • • Sep 20 '26

I built a Meme Recommendation App

Thumbnail cmodi306.medium.com
2 Upvotes

This is a project I have been working on since several weeks. It's something I wanted it personally and thought it would be fun to use such a product. Check it out.


r/PythonProjects2 • • Sep 19 '26

Nouvelle version 2.5.6 de Piveo

3 Upvotes

Bonjour,

La version 2.5.6 de Piveo est disponible :
Piveo 2.5.6

Voici les principales nouveautés :

  • Correction d'un bug lors de l'ajout d'une photo extérieure au logiciel.
  • Le paquet piveo_2.5.6-1_amd64.deb a été testé avec succès sur les versions Live USB d'Ubuntu 24.04 LTS et Ubuntu 26.04 LTS.

Documentation de Piveo


r/PythonProjects2 • • Sep 19 '26

I built a free, distraction-free desktop app to learn Python with 50 progressive levels (Open Source / PySide6)

Post image
1 Upvotes

r/PythonProjects2 • • Sep 19 '26

Open sourced project management app in Django + React. I'm looking for feedback in the permissions model.

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • Sep 19 '26

Resource I built Dexflow: A Python + Rust framework to automate your desktop by text labels.

4 Upvotes

r/PythonProjects2 • • Sep 19 '26

I took CS50, learned some Python, and built this

Thumbnail reddit.com
0 Upvotes

I’ve been wanting to learn programming for a while, so I finally decided to start with CS50 and learn a bit of Python.

After learning the basics, I thought the best way to actually learn would be to build something simple. That’s how I ended up building this:

https://cluebolt.com/

It’s a small puzzle game built with Flask and Python. It started as a learning project, but I kept adding things as I learned more.

Just wanted to share it and see what people think. Any feedback or suggestions are welcome!


r/PythonProjects2 • • Sep 17 '26

He guys, I’m going to start learning NumPy. Can you suggest some good resources and tips? ☺️

5 Upvotes