C Cryptography

Open-source C projects categorized as Cryptography

Top 23 C Cryptography Projects

  • OpenSSL

    TLS/SSL and crypto library

    Project mention: “Purchasing an arm” | reddit.com/r/Firearms | 2022-11-27
  • libsodium

    A modern, portable, easy to use crypto library.

    Project mention: Initial impact report about this week's EdDSA Double-PubKey Oracle attack in 40 affected crypto libs | reddit.com/r/crypto | 2022-06-18

    Feature request submitted to libsodium: https://github.com/jedisct1/libsodium/issues/1191

  • Zigi

    Close all those tabs. Zigi will handle your updates.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

  • cjdns

    An encrypted IPv6 network using public-key cryptography for address allocation and a distributed hash table for routing.

    Project mention: Ask HN: What's in Networking? | news.ycombinator.com | 2022-07-13

    I'm excited about P2P/decentralized/distributed overlay networks. Still catching up so would be grateful for tips on resources.

    Pinecone[0][1], newer initiative made by former Yggdrasil[2] maker(s).

    CJDNS[3].

    AIUI CJDNS relies on intermediary high-uptime discoverable router nodes which is what is motivating Pinecone. POKT[4][5] to CJDNS seems like what Filecoin is to IPFS.

    I'm yet to get around to doing the groundwork of grokking more established solutions like B.A.T.M.A.N. and how all these pieces fit together,

    [0]: https://fosdem.org/2022/schedule/event/matrix_p2p_pinecone/

    [1]: https://github.com/matrix-org/pinecone

    [2]: https://yggdrasil-network.github.io/

    [3]: https://github.com/cjdelisle/cjdns/

    [4]: https://www.pokt.network/

    [5]: https://piped.kavin.rocks/watch?v=-xgRUAA_p5E

  • s2n

    An implementation of the TLS/SSL protocols

    Project mention: S2n-QUIC (Rust implementation of QUIC) | news.ycombinator.com | 2022-02-17

    It looks like by default s2n-quic uses this TLS implementation, which is not based on the ring crate (though it is written in C)

    https://github.com/aws/s2n-tls

  • mbedTLS

    An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API.

    Project mention: redbean: a single-file actually portable web server with Lua, HTTPS and SQLite | reddit.com/r/lua | 2022-08-31

    Rebean is a single executable written in ANSI C that embeds Lua 5.4, MbedTLS and SQLite. The crazy thing about this is that it is a C binary that runs on six operating systems without any cross compiling thanks to leveraging Justine Tunney's cosmopolitan.

  • Tiny AES128 in C

    Small portable AES128/192/256 in C

    Project mention: Any AES-128 library supporting Arduino M0 pro? | reddit.com/r/arduino | 2022-11-01
  • pycryptodome

    A self-contained cryptographic library for Python

    Project mention: Weird error when running revdep-rebuild (failed to split pycryptodome package) | reddit.com/r/Gentoo | 2022-08-29
  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

  • openssh-portable

    Portable OpenSSH

    Project mention: Alternatives to post-quantum cryptography? | reddit.com/r/cryptography | 2022-09-08

    However if you re interested, you should check the openssh repo on Github. Just type openssh-portable in the github search bar and look for a file named kexsntrup761x25519.c https://github.com/openssh/openssh-portable/blob/master/kexsntrup761x25519.c

  • c-toxcore

    The future of online communications.

    Project mention: I know Privacy Guides is the new version of Privacy Tools, but even if so, do the recommendations (or at least most of them) in the old site still apply today? | reddit.com/r/PrivacyGuides | 2022-07-30

    Signal isn't falling behind and Tox is an old service that has had issues with messages being spoofable since day 1

  • wolfssl

    The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3!

    Project mention: “Purchasing an arm” | reddit.com/r/Firearms | 2022-11-27

    Or something a bit more lightweight - https://github.com/wolfSSL/wolfssl

  • minisign

    A dead simple tool to sign files and verify digital signatures.

    Project mention: How should I encrypt files for sharing over the internet? | reddit.com/r/crypto | 2022-10-30

    If you need signatures, minisign is a similar hard-to-misuse program.

  • Themis

    Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.

    Project mention: Themis: Strong, usable cryptography for busy people | news.ycombinator.com | 2022-02-17
  • LibTomCrypt

    LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

  • swift-crypto

    Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.

    Project mention: What do you think about server-side Swift? | reddit.com/r/swift | 2022-04-19

    Are you aware of SwiftCrypto (granted it is missing some capabilities)?

  • LibreSSL

    LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to [email protected] are welcome.

  • liboqs

    C library for prototyping and experimenting with quantum-resistant cryptography

    Project mention: What's the strongest encryption available for Python and which library do you use to implement it? | reddit.com/r/Python | 2022-09-03

    One thing I will mention for "most secure" is that you could add a second layer of encryption based on liboqs which aims to be quantum resistant (mostly important for asymmetric algorithms, symmetric algorithms are already thought to be quantum resistant). We don't know if any of the quantum resistant algorithms are any good or not. They could all be broken, so only use them as a second layer on top of existing encryption schemes, but if you want "the best", then that's what I would do: use standard tools with the biggest variants of the algorithm and then put a layer of post-quantum crypto on top of it.

  • PyNacl

    Python binding to the Networking and Cryptography (NaCl) library

    Project mention: pgcrypto question | reddit.com/r/PostgreSQL | 2022-10-24

    In my experience, using the pgcrypto module is a little clunky - it's often better for the application to be responsible for encryption and decryption (using something like Fernet or libsodium bindings) and writing into a bytea column.

  • brainflayer

    A proof-of-concept cracker for cryptocurrency brainwallets and other low entropy key alogrithms.

    Project mention: [ELI5] why don't people mine wallets? | reddit.com/r/Bitcoin | 2022-09-15

    For pre-HD wallets, see brainflayer https://github.com/ryancdotorg/brainflayer

  • bitcracker

    BitCracker is the first open source password cracking tool for memory units encrypted with BitLocker

    Project mention: Weiß jemand wie ich an die Daten von meinen alten PCs komme? | reddit.com/r/FragReddit | 2022-07-10
  • SipHash

    High-speed secure pseudorandom function for short messages

    Project mention: does math.randomseed() let you use letters, or only numbers? | reddit.com/r/lua | 2022-05-26

    Very fast with security guarantees. These are faster than full cryptographic hashes and fulfill some but not all of the security guarantees. That's not to say that they're weaker, but that they're designed for certain usecases where they are perfectly adequate and others where they fail miserably. Example: SipHash2-4 https://github.com/veorq/SipHash

  • Swift-Sodium

    Safe and easy to use crypto for iOS and macOS

  • libhydrogen

    A lightweight, secure, easy-to-use crypto library suitable for constrained environments.

    Project mention: libsodium-wrappers on a Raspberry Pi Zero W | reddit.com/r/raspberry_pi | 2022-04-22

    See if you can use this library instead of libsodium, as it'll probably work on your raspi zero: https://github.com/jedisct1/libhydrogen (Node bindings: https://github.com/trampi/node-libhydrogen-binding)

  • firmware

    ❄️ Firmware and simulator for Coldcard Hardware Wallet (by Coldcard)

    Project mention: Blockfi Files for Chapter 11 Bankruptcy | reddit.com/r/CryptoCurrency | 2022-11-29

    Technically there is a chance that the logic running on Coldcards is different than what's on GitHub. Sure, you can build the firmware yourself then push it to your SD card and update using that, but the device itself could slightly alter the behavior of the firmware in a way that allows the Coldcard creators to access your keys. Highly improbable, and essentially impossible if you build your own Coldcard, but there's still a minuscule chance that this might happen with the prebuilt devices.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

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). The latest post mention was on 2022-11-29.

C Cryptography related posts

Index

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

Project Stars
1 OpenSSL 20,191
2 libsodium 10,586
3 cjdns 4,938
4 s2n 4,218
5 mbedTLS 3,839
6 Tiny AES128 in C 3,354
7 pycryptodome 2,193
8 openssh-portable 2,123
9 c-toxcore 1,842
10 wolfssl 1,775
11 minisign 1,617
12 Themis 1,617
13 LibTomCrypt 1,308
14 swift-crypto 1,247
15 LibreSSL 1,161
16 liboqs 1,064
17 PyNacl 933
18 brainflayer 742
19 bitcracker 608
20 SipHash 524
21 Swift-Sodium 477
22 libhydrogen 445
23 firmware 359
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org