Registry / crypto / ircmaxell-random-lib

ircmaxell-random-lib

JSON →
library1.2.0phppackagistunverified

A library for generating secure random numbers and strings.

composer require ircmaxell/random-lib
INSTALL
IMPORT
SIG · IRCMAXELL-RANDOM-L
I
ircmaxell-random-lib
cryptophpv1.2.0
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 RandomLib\Factory;

Generate a random 16-character string using medium strength generator.

use RandomLib\Factory; $factory = new Factory; $generator = $factory->getMediumStrengthGenerator(); echo $generator->generateString(16, 'abcdef123456');
Debug
Known issues
gotchaThe library is no longer actively maintained; consider using random_bytes() or paragonie/random_compat.
fix
Use PHP's built-in random_bytes() or random_int() for modern applications.
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
ircmaxell-random-lib — pip install ircmaxell-random-lib · libregistry