1 repositorio
Polyfills that provide cryptographically secure random_bytes() and random_int() functions for legacy PHP 5.x environments.
Distinct from PSR-5 Implementations: No candidate covers PHP 5.x CSPRNG polyfills; closest candidates are about PSR standards or PHP security auditing, not runtime polyfills.
Explore 1 awesome GitHub repository matching development tools & productivity · PHP 5.x CSPRNG Polyfills. Refine with filters or upvote what's useful.
randomcompat is a backward-compatibility library that provides cryptographically secure random number generation functions for PHP 5.x environments. It delivers the randombytes() and random_int() functions that are natively available in PHP 7+, enabling legacy applications to generate secure random bytes and unbiased integers from system entropy sources. The library implements a priority-based fallback chain across operating-system CSPRNGs, selecting the best available random source in order of security. It uses rejection sampling to convert raw random bytes into unbiased integers withi
Provides cryptographically secure randombytes() and randomint() functions for legacy PHP 5.x environments.