Story Details

  • 15,000 lines of verified cryptography now in Python

    Posted: 2025-04-18 19:28:44

    Jonathan Protzenko announced the release of Evercrypt 1.0 for Python, providing a high-assurance cryptography library with over 15,000 lines of formally verified code. This release leverages the HACL* cryptographic library, which has been mathematically proven correct, and makes it readily available for Python developers through a simple and performant interface. Evercrypt aims to bring robust, verified cryptographic primitives to a wider audience, improving security and trustworthiness for applications that depend on strong cryptography. It offers a drop-in replacement for existing libraries, significantly enhancing the security guarantees without requiring extensive code changes.

    Summary of Comments ( 130 )
    https://news.ycombinator.com/item?id=43731165

    Hacker News users discussed the implications of having 15,000 lines of verified cryptography in Python, focusing on the trade-offs between verification and performance. Some expressed skepticism about the practical benefits of formal verification for cryptographic libraries, citing the difficulty of verifying real-world usage and the potential performance overhead. Others emphasized the importance of correctness in cryptography, arguing that verification offers valuable guarantees despite its limitations. The performance costs were debated, with some suggesting that the overhead might be acceptable or even negligible in certain scenarios. Several commenters also discussed the challenges of formal verification in general, including the expertise required and the limitations of existing tools. The choice of Python was also questioned, with some suggesting that a language like OCaml might be more suitable for this type of project.