1 个仓库
Provides cryptographically secure random number generation functions for legacy PHP 5.x applications that lack native support.
Distinct from Cryptographic Random Number Generators: Distinct from Cryptographic Random Number Generators: focuses on PHP 5.x backward compatibility, not general cryptographic random number generation.
Explore 1 awesome GitHub repository matching security & cryptography · PHP 5.x Random Function Compatibility. 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 random number generation functions for legacy PHP 5.x applications.