Registry / crypto / paragonie-random-lib

paragonie-random-lib

JSON →
library2.0.3phppackagistunverified

A library for generating secure random numbers.

composer require paragonie/random-lib
INSTALL
IMPORT
SIG · PARAGONIE-RANDOM-L
P
paragonie-random-lib
cryptophpv2.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Factory
✓ use ParagonIE\RandomLib\Factory;

Generate a secure random string using the medium strength generator.

use ParagonIE\RandomLib\Factory; $factory = new Factory; $generator = $factory->getMediumStrengthGenerator(); $randomString = $generator->generateString(32);
Debug
Known issues
breakingRequires PHP 7.0+ and the random_compat polyfill for older PHP versions.
fix
Ensure PHP version is 7.0 or higher, or install paragonie/random_compat.
affects: <2.0
Upgrade
Version history
2.0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
25
Resources
paragonie-random-lib — pip install paragonie-random-lib · libregistry