paragonie/constant_time_encoding
Fast, secure constant-time encoding/decoding utilities for PHP. Provides Base32, Base64 (incl. URL-safe), and Hex implementations designed to reduce timing side-channel leaks. Ideal for cryptography, tokens, and security-sensitive data handling.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| paragonie/ecc | 0.82 | Pure-PHP elliptic curve cryptography (ECDSA/ECDH) with an OpenSSL 3+ fast path and hardened constant-time fallbacks. Fork of phpecc/mdanter. Supports secp256k1, NIST P-256/384/521, Brainpool, plus optional insecure curves. | 24 | 24 | 5 | 49K | 0 | 18.8 | 52.0 | — | 2 months ago | |
| phpcompatibility/phpcompatibility-paragonie | 0.82 | PHP_CodeSniffer rulesets that extend PHPCompatibility to account for Paragonie polyfills (random_compat and sodium_compat), reducing false positives when checking PHP cross-version compatibility. Includes separate RandomCompat and SodiumCompat standards. | 10 | 12 | 2 | 2M | 0 | 5.0 | 56.0 | LGPL-3.0 | 11 months ago | |
| paragonie/easy-ecc | 0.81 | 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). | 35 | 47 | 6 | 38K | 1 | 4.7 | 41.7 | NOASSERTION | 1 year ago | |
| composer/pcre | 0.81 | Type-safe wrappers around PHP's preg_* functions that fail loudly instead of returning unexpected nulls. Enforces PREG_UNMATCHED_AS_NULL, simplifies return types for PHPStan and Psalm, and includes a PHPStan extension for better regex analysis. | 720 | 721 | 15 | 22M | 0 | 23.9 | 61.1 | MIT | 4 months ago | |
| paragonie/sodium_compat | 0.81 | Pure PHP polyfill for libsodium (Sodium crypto), transparently using the PHP extension when installed. Supports PHP 5.2.4+ and 32-bit integers in v1.x, with v2.x targeting PHP 8.1+. | 932 | 939 | 67 | 5M | 0 | 32.9 | 59.1 | ISC | 2 months ago | |
| paragonie/random_compat | 0.81 | PHP 5 polyfill for random_bytes() and random_int(), providing secure, cryptographically strong randomness on older PHP versions. Uses the best available system sources and falls back safely, helping apps generate tokens, keys, IDs, and nonces consistently across environments. | 8,147 | 8,165 | 152 | 18M | 5 | 39.9 | 46.9 | MIT | 4 years ago | |
| sanmai/duoclock | 0.80 | PSR-20 clock abstraction with dual time access (DateTimeImmutable, time(), microtime()) plus mockable sleep/usleep/nanosleep for testing. Includes deterministic TimeSpy and tick helpers to measure elapsed time. Minimal dependency (psr/clock) and easy to mock. | 3 | 3 | 1 | 1M | 0 | 5.2 | 57.1 | Apache-2.0 | 10 months ago | |
| andanteproject/timestampable-bundle | 0.80 | Symfony bundle for Doctrine entities that automatically manages createdAt and updatedAt with DateTimeImmutable. Zero config to start, customizable, uses Symfony Clock, no attributes needed, and won’t overwrite timestamps you set manually. Compatible with Symfony 5–8, PHP 8.2. | 9 | 9 | 3 | 3K | 0 | 17.1 | 37.9 | MIT | 6 months ago | |
| paragonie/hidden-string | 0.80 | HiddenString provides a small PHP utility for handling sensitive strings more safely in memory. Extracted from ParagonIE Halite, it helps reduce accidental exposure via debugging/serialization by wrapping secret values in an object. Requires PHP 7+. | 72 | 73 | 4 | 662K | 2 | 1.9 | 54.9 | MPL-2.0 | 2 years ago | |
| paragonie/halite | 0.79 | Halite is a high-level PHP cryptography library from Paragon Initiative Enterprises, built on libsodium. It provides safer, opinionated APIs for encryption, authentication, key management, and password hashing, helping you use modern crypto correctly with minimal foot-guns. | 1,153 | 1,165 | 91 | 443K | 21 | 23.7 | 41.9 | MPL-2.0 | 1 year ago | |
| paragonie/paseto | 0.79 | Reference PHP implementation of PASETO security tokens (v3/v4): safer alternative to JWT/JWE/JWS with modern crypto. Supports local and public tokens, includes PASERK integration for key serialization/wrapping, and works with Sodium (or sodium_compat). | 3,398 | 3,399 | 109 | 46K | 3 | 30.1 | 16.8 | NOASSERTION | 1 year ago | |
| christian-riesen/base32 | 0.78 | A strict RFC 4648 Base32 encoder and decoder for PHP, with support for the extended hex alphabet. Decoding rejects malformed input, and the package includes test vectors and unit tests. | 134 | 135 | 30 | 1M | 0 | 19.5 | 60.6 | MIT | 3 months ago | |
| gabrielelana/byte-units | 0.76 | — | 168 | 175 | 16 | 41K | 3 | 3.2 | 34.4 | MIT | 8 years ago | |
| paragonie/csp-builder | 0.75 | Build and send Content-Security-Policy headers in PHP from JSON files, JSON strings, or arrays. CSP Builder makes it easy to define directives programmatically and integrate CSP into web apps to improve security. | 540 | 546 | 39 | 79K | 7 | 33.8 | 37.2 | MIT | 2 months ago | |
| axy/codecs-base64vlq | 0.75 | PHP codec for Base64 VLQ (variable-length quantity) encoding/decoding of integer sequences, suitable for compact text representations (e.g., JavaScript/CSS source maps). Converts signed ints to VLQ digits and maps them into Base64 characters. | 3 | 3 | 4 | 9K | 0 | 0.2 | 46.6 | MIT | — |
How can I help you explore Laravel packages today?