Skip to content

Developer tools · cryptography library

libsodium

Hacker Approved

Developers recommend it for solid cryptography primitives with one blessed algorithm each; the common caveat is that its primitives don't always fit the need.

Summarized from 10 comments.

Developers recommend it for solid cryptography primitives with one blessed algorithm each; the common caveat is that its primitives don't always fit the need.

recommend
10
criticize
0
months recommended
6 of 13

Why people love it

  • Tight, solid crypto API design · 2

    Ristretto is a tightly designed API that allows me to build arbitrary polynomials on Curve25519

    Dec 2025 · comment

    I trust that libsodium's X25519 is implemented pretty solidly

    Jul 2026 · comment

What people warn about

  • Implementations differ across libraries · 1

    Did you also check all of the libraries that implement the check differently to libsodium?

    Dec 2025 · comment
  • Not helpful for many OpenSSL uses · 1

    This is generally not helpful for the kinds of things that people use OpenSSL for.

    Jan 2026 · comment
  • Primitives not always what's needed · 1

    Still great, but the primitives it provides aren't necessarily the ones you need.

    Jan 2026 · comment

What hackers pick instead

Every quote

The 8 most detailed of 10 comments. Each links to the original.

  1. Ristretto is a tightly designed API that allows me to build arbitrary polynomials on Curve25519

    Recommends · Dec 2025 · in “A Vulnerability in Libsodium”

  2. Did you also check all of the libraries that implement the check differently to libsodium?

    Mixed · Dec 2025 · in “A Vulnerability in Libsodium”

  3. This is generally not helpful for the kinds of things that people use OpenSSL for.

    Mixed · Jan 2026 · in “The State of OpenSSL for pyca/cryptography”

  4. Still great, but the primitives it provides aren't necessarily the ones you need.

    Mixed · Jan 2026 · in “The State of OpenSSL for pyca/cryptography”

  5. I trust that libsodium's X25519 is implemented pretty solidly

    Recommends · Jul 2026 · in “Soatok's Informal Guide to Threat Models”

  6. They'll provide you one blessed algorithm for every primitive with secure alternatives if your use-case demands them.

    Recommends · Nov 2025 · in “Cryptography 101 with Alfred Menezes”

  7. Frank does great work that is critical to many businesses

    Recommends · Dec 2025 · in “A Vulnerability in Libsodium”

  8. which are also well maintained

    Mixed · Oct 2026 · in “A Modern Web App in C”

Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake