{"categories":[{"label":"Cryptography","url":"https://skillfed.io/packages/category/security-cryptography/2"}],"enrichment":{"capability":"Generates Diffie-Hellman key exchange parameters and performs shared secret computation using cryptographically secure operations with Rust-backed performance.","skillfed_tags":["key-exchange","cryptography","rust-backed"],"use_cases":["Establishing encrypted communication channels between two peers in a distributed system","Generating shared encryption keys for secure message exchange protocols","Testing cryptographic implementations that require Diffie-Hellman parameter generation","Building key agreement mechanisms for IoT or embedded systems requiring lightweight crypto","Implementing forward-secret session key derivation in custom authentication schemes"],"what_it_does":"DiffieHellmanLib is a Python cryptography library that implements the Diffie-Hellman key exchange protocol, with core functions written in Rust for performance. It generates cryptographically secure parameters (a large prime p and primitive root g), creates private and public key pairs for two parties, and computes a shared secret that both parties can derive independently. The library supports prime sizes from 512 to 8192 bits, with 2048 bits recommended for production use; it includes caching of generated primes with a 1-hour TTL and applies SHA-256 hashing plus HKDF to the final shared secret for additional security.\n\nThe package has no runtime dependencies and is designed for scenarios where two parties need to establish a shared encryption key over an untrusted channel. It requires Python 3.7 or higher and depends on precompiled wheels for most users, though source builds require Rust and the maturin build tool.","worth_installing":"Yes, if you need a straightforward Diffie-Hellman implementation with Rust-backed performance and no external crypto dependencies. The MIT license and zero runtime dependencies make it low-friction to integrate. However, note that the project shows aging maintenance (last release 533 days ago) and prebuilt wheels are limited to Linux x64 and Windows x64; other platforms require a source build with Rust tooling. For production use, verify that 2048-bit or larger primes are enforced and that parameter transmission is authenticated."},"id":"diffiehellmanlib","links":{"html":"https://skillfed.io/packages/diffiehellmanlib","md":"https://skillfed.io/packages/diffiehellmanlib.md","pypi":"https://pypi.org/project/diffiehellmanlib/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-27","license_spdx":null,"license_treatment":"permissive","name":"diffiehellmanlib","python_support":"supports_current","summary":"Diffie-Hellman key exchange library"},"popularity":{"monthly_downloads":73822,"position":14925,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.0.1"}
