git404hub

what is crypten fr?

lxuechen/crypten — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2022-02-24

Audience · researcherComplexity · 4/5DormantSetup · moderate

tl;dr

A research framework for training AI models on encrypted data, so no party ever sees the raw sensitive information.

vibe map

mindmap
  root((crypten))
    What it does
      Encrypts data as CrypTensors
      Secure multiparty computation
      Trains models privately
    Tech stack
      PyTorch
      Python
    Use cases
      Fraud detection across banks
      Cross-hospital ML
      Private data research
    Audience
      Researchers
      Privacy startups
    Limits
      CPU only
      Not production ready

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Train a fraud-detection model jointly across a bank and tech company without sharing customer records.

VIBE 2

Build predictive algorithms across multiple hospitals without centralizing patient data.

VIBE 3

Run inference on encrypted data using PyTorch-like CrypTensor code.

VIBE 4

Experiment with training neural networks end-to-end on encrypted data using the provided tutorials.

what's the stack?

PyTorchPython

how it stacks up fr

lxuechen/crypten0verflowme/alarm-clock0verflowme/seclists
LanguageCSS
Last pushed2022-02-242022-10-032020-05-03
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity4/52/51/5
Audienceresearchervibe coderops devops

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 1h+

Research framework only, Linux/Mac CPU-only, no GPU support and not production-ready.

in plain english

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.

prompts (copy fr)

prompt 1
Help me convert a PyTorch training script to use CrypTen's CrypTensors instead.
prompt 2
Explain how Secure Multiparty Computation lets CrypTen train models without exposing data.
prompt 3
Walk me through CrypTen's MNIST classifier tutorial step by step.
prompt 4
What are the limitations of using CrypTen for a real research project right now?

Frequently asked questions

what is crypten fr?

A research framework for training AI models on encrypted data, so no party ever sees the raw sensitive information.

Is crypten actively maintained?

Dormant — no commits in 2+ years (last push 2022-02-24).

How hard is crypten to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is crypten for?

Mainly researcher.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.