Rust Rewrite Index

libsodium

Network communication, cryptography and signaturing library

Rust efforts

Research record · 2026-11-29

Searched libsodium, sodiumoxide bindings, direct ports, RustCrypto NaCl compatibility and dryoc. SafeLibs is a direct package port; dryoc began as a port and diverged to a Rust API, while sodiumoxide wraps the original C library.

Original source check. The packaged source scan found zero files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Partial rewrite

SafeLibs libsodium

Experimental Rust port targeting Ubuntu 24.04 libsodium and C ABI; the project reports test-stage validation and says its generated code has not been human-audited.

Evidence checked 2026-11-29
Rust alternative

dryoc

Rust cryptography library whose author says it began as a libsodium port and then diverged; its Rust API offers selected libsodium-compatible operations and formats, not the original C ABI.

Evidence checked 2026-11-29

Project structure

NaCl (pronounced "salt") is a new easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc.

Inside the source tree

Source files by extension in this snapshot · C (183), Assembly (8), Python (2)

Selected components packaged from this source in Debian 13.

  • libsodium23 · Network communication, cryptography and signaturing library
  • libsodium-dev · Network communication, cryptography and signaturing library - headers