lxuechen/crypten — explained in plain English
Analysis updated 2026-07-18 · repo last pushed 2022-02-24
Train a fraud-detection model jointly across a bank and tech company without sharing customer records.
Build predictive algorithms across multiple hospitals without centralizing patient data.
Run inference on encrypted data using PyTorch-like CrypTensor code.
Experiment with training neural networks end-to-end on encrypted data using the provided tutorials.
| lxuechen/crypten | 0verflowme/alarm-clock | 0verflowme/seclists | |
|---|---|---|---|
| Language | — | CSS | — |
| Last pushed | 2022-02-24 | 2022-10-03 | 2020-05-03 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | moderate | easy | easy |
| Complexity | 4/5 | 2/5 | 1/5 |
| Audience | researcher | vibe coder | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Research framework only, Linux/Mac CPU-only, no GPU support and not production-ready.
CrypTen is a tool that lets machine learning researchers train and run AI models on encrypted data without ever exposing the raw information. Imagine you want to build a predictive model using sensitive data from multiple organizations, hospital records, financial information, or personal metrics, but none of the parties involved want to share their actual data. CrypTen solves this by keeping all the data encrypted throughout the entire process, so the model learns patterns without anyone seeing the underlying numbers. The way it works is deceptively simple from a user's perspective. CrypTen wraps data in encrypted containers called CrypTensors that behave almost exactly like PyTorch tensors, the standard tool most machine learning engineers already use. This means if you know PyTorch, you can write CrypTen code that looks nearly identical. Behind the scenes, the framework uses mathematical techniques called Secure Multiparty Computation to let multiple computers work with encrypted data simultaneously, perform calculations, and reach results without revealing secrets to each other. It's built as a full tensor library rather than just a bolt-on encryption layer, which makes debugging and experimentation much more practical for real research work. This is most useful for research teams, privacy-focused startups, or institutions handling regulated data. A bank could collaborate with a tech company to build a fraud detection model without either party exposing customer records. A healthcare network could train predictive algorithms across multiple hospitals without centralizing patient data. The framework includes tutorials and working examples, like training classifiers on MNIST, running inference on ImageNet models, and even training neural networks end-to-end on encrypted data, so researchers can see concrete applications. The README notes this is still a research framework, not ready for production use. It only supports Linux and Mac, and computation happens on CPUs, not GPUs, which means training is slower than standard machine learning. But for teams exploring how to do serious machine learning while keeping data private, it's a genuine library rather than a simplified proof-of-concept, which matters for understanding real-world tradeoffs.
A research framework for training AI models on encrypted data, so no party ever sees the raw sensitive information.
Dormant — no commits in 2+ years (last push 2022-02-24).
Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
double-check against the repo, no cap.