random_compat

random_compat

#Application Protection#Data Protection

Steganographic Swiss army knife for encoding and decoding data into images.

Visit Website

random_compat PHP 5 - A Polyfill for Secure Random Functions

This is a polyfill for the random_bytes() and random_int() functions, created and maintained by Paragon Initiative Enterprises. While this library is designed to work with earlier versions of PHP, we will only address issues that pertain to the supported PHP versions. If you are currently using an unsupported version of PHP, we strongly recommend upgrading as soon as possible. Important: Although this library has undergone review by several security experts within the PHP community, there is always a possibility that we may have missed something. We encourage you to have your trusted security professionals test it for implementation errors and bugs before considering its deployment in a production environment. Please refrain from using the master branch; instead, opt for a stable release.

Background Information on This Library

For background information on this library, please check out our blog post about Generating Random Integers and Strings in PHP. Usability Notice: If PHP is unable to safely generate random data, this library will raise an Exception.

It will never revert to insecure random data

If this issue persists, please upgrade to a newer version of PHP without delay. Installing With Composer: # For libraries and frameworks that are compatible with PHP 5, but may also be utilized by other software that only supports PHP 7: composer require paragonie/random_ Requirements: