Back to browse
GitHub Repository

Self-learning system of ANNs designed to securely encrypt and transmit messages while constantly upgrading the encryption algorithm.

11 starsPython

NeuroSync – An experimental Python library for neural cryptography

by TheDumb1·Feb 27, 2026·1 point·2 comments

AI Analysis

●●SolidBig BrainRabbit Hole

Academic neural cryptography with error correction—interesting research, niche application.

Strengths
  • Bridges gap between theory (Google Brain paper) and usable library with packet-level protocol
  • Hash-based error correction achieves 100% accuracy, solving inherent 0.2% neural sync failures
  • GPU acceleration + simple API lowers barrier for cryptography researchers
Weaknesses
  • Eve adversary network underdeveloped; unclear if security claims hold against real attacks
  • No production-grade security audits; unsuitable for defending actual secrets
Category
Target Audience

Cryptography researchers, ML security practitioners, academic projects

Similar To

Google Brain neural cryptography research · TensorFlow Encrypted

Post Description

Hi HN,

I built NeuroSync originally as a final year school project to explore Neural Cryptography. The main idea is the use of adversarial learning to train two NNs (Alice and Bob) to encrypt and decrypt data while a third one (Eve) is trying to break the cipher. While that isn't new I made it into a usable library with an interface that allows to easily switch parameters and experiment with them to help research in this field.

To make it functional, I implemented a hash-based correction system to ensure 100% decryption accuracy (bypassing the usual 0.2% probabilistic errors of neural synchronization), alongside packet sequencing and periodic key changes.

It is definitely still a work in progress, and the "Eve" (attacker) network currently needs a lot of work. But the first version is usable and the core communication protocol works.

I added a Jupyter Notebook in the repo so you can test the key exchange and encryption without setting anything up. I'm sharing this mostly to get your feedback, hear your ideas, and maybe find some folks interested in this field too.

Would love to hear your thoughts or critiques!

Similar Projects

AI/ML●●●Banger

Orion – Native Training LLMs on the Apple Neural Engine Without CoreML

Direct ANE access bypasses CoreML to enable training—genuinely novel Apple Silicon unlock.

WizardryZero to OneBig Brain
mechramc
213mo ago