RandomLib

RandomLib

#Application Protection#Data Protection

Steghide is a steganography program that hides data in image and audio files.

Visit Website

A Library for Generating Random Numbers and Strings

This library is designed for generating random numbers and strings with various levels of strength.

This Library is Useful in Security Contexts

Install Via Composer $ composer require ircmaxell/random-lib Usage Factory A factory is utilized to obtain generators of varying strength: $factory = new RandomLib\Factory; $generator = $factory->getGenerator(new SecurityLib\Strength(SecurityLib\Strength::MEDIUM)); A factory can be configured with additional mixers and sources, but it is also ready to use out of the box for creating both medium and low strength generators. Convenience methods are available for generating high, medium, and low strength generators. Example: $generator = $factory->getMediumStrengthGenerator(); $factory->getLowStrengthGenerator(); This is a convenience method for obtaining a low strength random number generator. Low Strength should be used in situations where random strings are needed in a non-cryptographic context. Requirements:

They are not strong enough

They do not possess sufficient strength to function effectively as keys or salts.

They are, however, useful for one-time use tokens

$factory->getMediumStrengthGenerator() This is a convenient method for obtaining a medium strength random number generator. A medium strength generator is suitable for most cryptographic needs.

They are strong enough to perform effectively

They are strong enough to handle the required tasks and functions.