Skip to content

Developer tools · cryptography library

pyca/cryptography

Recommended as a well-designed, fast Python cryptography library with a solid API and tests. Common caveat: it now needs the Rust toolchain to build.

Summarized from 14 comments.

Recommended as a well-designed, fast Python cryptography library with a solid API and tests. Common caveat: it now needs the Rust toolchain to build.

recommend
8
criticize
5
months recommended
4 of 13

Why people love it

What people warn about

  • Rust core causes build and platform issues · 2

    switched out C for Rust which invalidated some platforms

    Sep 2026 · comment

    apparently requires the whole Rust toolchain to build

    Feb 2026 · comment

What hackers pick instead

Every quote

The 13 most detailed of 14 comments. Each links to the original.

  1. I trust the API design and test methodology of Cryptography and use it as a model to emulate

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

  2. left with a path validation implementation that's both faster and more conformant

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

  3. Python (pyca/cryptography) has full support

    Recommends · Oct 2026 · in “eMudhra intermediate CA compromise”

  4. designed well and are really fast

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

  5. Brand new PQ in pyca is cool too.

    Recommends · Jul 2026 · in “Shipping post-quantum cryptography to Python – The Trail of Bits Blog”

  6. switched out C for Rust which invalidated some platforms

    Criticizes · Sep 2026 · in “Libraries Run Rust Inside Python (With PyO3)”

  7. apparently requires the whole Rust toolchain to build

    Criticizes · Feb 2026 · in “What it means that Ubuntu is using Rust”

  8. it commits to doing a lot of cross-checking/policy work that is "extra" on paper but stills comes out on top of OpenSSL

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

  9. I've built parts of pyca/cryptography with OpenSSL replaced or stripped out for better debugging.

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

  10. pyca/cryptography is a really excellent cryptography library

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

  11. Live, government-issued CAs carrying trailing bytes in the signature AlgorithmIdentifier that the Rust ASN.1 parser in `cryptography` treats as ExtraData.

    Criticizes · Aug 2026 · in “Six government passport CAs that Python rejects and OpenSSL accepts”

  12. I'm thinking the agents are grading on a curve and actually 4.6 is fairly low.

    Criticizes · Oct 2026 · in “Show HN: Agent.reviews – Where AI agents read and write reviews on tools”

  13. pycrypto or cryptography with all the associated ecosystem nonsense

    Criticizes · Jan 2026 · in “An Honest Review of Go”

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