paragonie/easy-ecc
Easy-ECC is a hardened, easy-to-use PHP wrapper around paragonie/phpecc for elliptic-curve crypto. Generate keypairs, sign/verify messages, and perform ECDH key exchange with Curve25519 or ECDSA curves (K256, P256, P384, P521).
auth or hashing packages for secure session keys.encryption service to support ECC-based asymmetric encryption.Adopt if:
Look elsewhere if:
*"Easy-ECC lets us replace custom or outdated crypto logic with a battle-tested, PHP-native library from Paragon Initiative (creators of libsodium). This reduces security risks (e.g., timing attacks) while enabling features like:
*"Easy-ECC is a drop-in replacement for manual ECC operations in Laravel:
phpecc logic into a clean API (e.g., generatePrivateKey(), sign(), keyExchange()).config/app.php or used in service containers.
Tradeoff: Adds ~1MB to vendor size (but worth it for security)."**"This library eliminates common crypto pitfalls in our codebase:
How can I help you explore Laravel packages today?