Rust Cryptography

Open-source Rust projects categorized as Cryptography

Top 23 Rust Cryptography Projects

Cryptography
  1. rustls

    A modern TLS library in Rust

    Project mention: Convert enum into/from number in Rust | dev.to | 2025-03-17

    This document provides my intention of enum_builder! macro in rustls crate.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. grin

    Minimal implementation of the Mimblewimble protocol.

  4. Ockam

    Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale.

    Project mention: Autossh – automatically restart SSH sessions and tunnels | news.ycombinator.com | 2024-09-28

    May I suggest a tool built for application level portals instead?

    https://github.com/build-trust/ockam

    One binary, easy to use, no ssh getting stuck! (yep, I work at Ockam :)

  5. snarkOS

    A Decentralized Operating System for ZK Applications

  6. freenet-core

    Declare your digital independence

    Project mention: Distributed Systems Programming Has Stalled | news.ycombinator.com | 2025-02-27

    The article raises some great points about why distributed programming has stalled, but I think there’s still room for innovation, especially in how we handle state consistency across a decentralized system.

    In Freenet[1], we’ve been working on a novel approach to consistency that avoids many of the typical trade-offs between strong consistency and availability. Instead of treating state as a single evolving object, we use a model where updates are expressed as summarizable deltas—essentially, each update is a commutative monoid, allowing peers to independently merge state while still preserving consistency guarantees.

    This avoids the need for heavyweight consensus protocols while still ensuring that nodes can reach a consistent view of the data. More details here: https://freenet.org/news/summary-delta-sync/

    [1] https://freenet.org/

  7. hashes

    Collection of cryptographic hash functions written in pure Rust

    Project mention: Show HN: Rust Vector and Quaternion Lib | news.ycombinator.com | 2025-03-06
  8. rust-openssl

    OpenSSL bindings for Rust

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. CYFS

    CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP),is short for CYberFileSystem. https://www.cyfs.com/, cyfs://cyfs/index_en.html.

  11. rust-crypto

    A (mostly) pure-Rust implementation of various cryptographic algorithms.

  12. exonum

    An extensible open-source framework for creating private/permissioned blockchain applications

  13. s2n-quic

    An implementation of the IETF QUIC protocol

  14. rosenpass

    Rosenpass is a post-quantum-secure VPN that uses WireGuard to transport the actual data.

    Project mention: PQConnect – a new easy-to-install layer of Internet security from DJB, Lange | news.ycombinator.com | 2024-12-27

    There are a number (or just one? Mullvad) of commercial VPN providers that provide an optional PQC layer, and that fact is referenced on this project's page.

    There is also VPN software that incorporates PQC (also referenced): https://rosenpass.eu

    What this project attempts to do is to establish a PQC stream between any two peers end-to-end (in most situations one of the peers will be a server). This is an important difference as a VPN expects a network-protocol (eg. IP) tunnel of some sort to flow across.

  15. tfhe-rs

    TFHE-rs: A Pure Rust implementation of the TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data.

  16. snarkVM

    A zkVM for Decentralized Private Computations (DPC)

  17. mundane

    Mundane is a Rust cryptography library backed by BoringSSL that is difficult to misuse, ergonomic, and performant (in that order).

  18. ezkl

    ezkl is an engine for doing inference for deep learning models and other computational graphs in a zk-snark (ZKML). Use it from Python, Javascript, or the command line.

    Project mention: SP1: A performant, 100% open-source, contributor-friendly zkVM | news.ycombinator.com | 2024-12-08

    For those looking for applications outside crypto, this might also be interesting: https://docs.ezkl.xyz/

    It's similar to Succinct but for proofs of ML models instead of RISCV. So you could generate a proof on some private data, on your computer or in a trusted environment, and submit the proof to show that you pass a fraud check without revealing any of your data.

  19. noir

    Noir is a domain specific language for zero knowledge proofs

    Project mention: Noir Programming Language | news.ycombinator.com | 2025-03-07
  20. multi-party-ecdsa

    Rust implementation of {t,n}-threshold ECDSA (elliptic curve digital signature algorithm).

  21. lemmeknow

    The fastest way to identify anything!

  22. curve25519-dalek

    A pure-Rust implementation of group operations on Ristretto and Curve25519

  23. gxhash

    The fastest hashing algorithm 📈

    Project mention: Tolower() with AVX-512 | news.ycombinator.com | 2024-07-28

    There's a debate on how unsafe/unsound this technique actually is. https://github.com/ogxd/gxhash/issues/82

    I definitely see the conundrum since the dangerous code is such a huge performance gain.

  24. rpgp

    OpenPGP implemented in pure Rust, permissively licensed

    Project mention: rpgp: Pure Rust Implementation of OpenPGP | news.ycombinator.com | 2024-04-07

    I just finished implementing sha1collision detection, and it will be integrated into rpgp soon https://github.com/rpgp/rpgp/issues/293

    This is the same algorithm used by git.

    There are higher level implementations that use the dates on signatures to straight out reject sha1 material, but that gives only a limited protection.

  25. RustCrypto

    Authenticated Encryption with Associated Data Algorithms: high-level encryption ciphers

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Cryptography discussion

Log in or Post with

Rust Cryptography related posts

Index

What are some of the best open-source Cryptography projects in Rust? This list will help you:

# Project Stars
1 rustls 6,555
2 grin 5,076
3 Ockam 4,514
4 snarkOS 4,425
5 freenet-core 2,339
6 hashes 1,982
7 rust-openssl 1,452
8 CYFS 1,433
9 rust-crypto 1,416
10 exonum 1,245
11 s2n-quic 1,207
12 rosenpass 1,159
13 tfhe-rs 1,118
14 snarkVM 1,108
15 mundane 1,070
16 ezkl 1,044
17 noir 1,021
18 multi-party-ecdsa 1,015
19 lemmeknow 981
20 curve25519-dalek 956
21 gxhash 882
22 rpgp 852
23 RustCrypto 770

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Rust is
the 5th most popular programming language
based on number of references?