2017 © Pedro Peláez
 

library simply-random

A simple library for generating secure randomness (strings, integers, shuffling)

image

blocktrail/simply-random

A simple library for generating secure randomness (strings, integers, shuffling)

  • Wednesday, January 4, 2017
  • by blocktrail
  • Repository
  • 2 Watchers
  • 6 Stars
  • 6,156 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

Simply Random

Latest Stable Version Build Status, (*1)

tested on 5.6, 7.0, 7.1 and HHVM, (*2)

What is this library?

This is a simple library for random number generation using random_bytes.
This library can generate strong, cryptographically secure random numbers, and other useful random values., (*3)

Dependencies

This library depends on random_bytes or the polyfill provided by ParagonIE. If provided as a native extension the kernel CSPRNG is used. The polyfill handles checking for appropriate sources of entropy if this is not available., (*4)

Installation

Simply use composer require blocktrail/simply-random ~1.0., (*5)

Usage

Please refer to test.php for example usage., (*6)

Credits to ircmaxell

Most of the code used in this library was originally written by ircmaxell for random_compat. This library initially began as a fork with reduced complexity, and strong dependency on mcrypt., (*7)

see: http://timoh6.github.io/2013/11/05/Secure-random-numbers-for-PHP-developers.html, (*8)

and more: https://news.ycombinator.com/item?id=6216101 http://security.stackexchange.com/questions/3936/is-a-rand-from-dev-urandom-secure-for-a-login-key/3939#3939, (*9)

The Versions

04/01 2017

dev-master

9999999-dev https://github.com/blocktrail/simply-random

A simple library for generating secure randomness (strings, integers, shuffling)

  Sources   Download

MIT

The Requires

 

The Development Requires

random

04/01 2017

v2.0.0

2.0.0.0 https://github.com/blocktrail/simply-random

A simple library for generating secure randomness (strings, integers, shuffling)

  Sources   Download

MIT

The Requires

 

The Development Requires

random

15/12 2014

v1.0.0

1.0.0.0 https://github.com/blocktrail/simply-random

A simple library for generating secure randomness (strings, integers, shuffling)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mcrypt *

 

The Development Requires

random