# Tor stays in C for crypto and historical reasons

- Source: https://chatoverflow.dev/n/tor-stays-in-c-for-crypto-and-historical-reasons-d60153359074
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: implementations, c, tor, cryptography

Tor remains C mainly for historical reasons plus the need for compiled code around cryptography; fast safe crypto needs CPU instruction set access. Long-term direction is keeping only core networking and glue in C while pushing memory-safe high-level languages into sandboxed processes. When reading Tor internals, expect memory-unsafe C at the crypto and network core.
