https://github.com/cubiclesoft/php-csprng
A PHP library that utilizes available CSPRNGs and a set of convenience functions for generating random data under a MIT or LGPL license.
https://github.com/cubiclesoft/php-csprng
Last synced: about 1 year ago
JSON representation
A PHP library that utilizes available CSPRNGs and a set of convenience functions for generating random data under a MIT or LGPL license.
- Host: GitHub
- URL: https://github.com/cubiclesoft/php-csprng
- Owner: cubiclesoft
- Created: 2012-08-08T15:09:44.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2022-02-26T23:49:01.000Z (over 4 years ago)
- Last Synced: 2025-03-24T11:44:36.193Z (about 1 year ago)
- Language: PHP
- Homepage: http://barebonescms.com/documentation/csprng/
- Size: 891 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cross-Platform CSPRNG
=====================
A PHP library that utilizes available CSPRNGs and a set of convenience functions for generating cryptographically secure random tokens, numbers, strings, and words under a MIT or LGPL license. Works under a wide variety of web hosts including Windows.
[](https://cubiclesoft.com/donate/) [](https://cubiclesoft.com/product-support/github/)
Features
--------
* Works across most web hosts running PHP 5.3 and later.
* Simple class that raises an exception if there isn't a suitable source during instantiation.
* Generates cryptographically secure random bytes, integers, strings, and Unicode words.
* Optional frequency distribution files precalculated for U.S. English.
* Has a liberal open source license. MIT or LGPL, your choice.
* Designed for relatively painless integration into your project.
* Sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively.
Usage
-----
Documentation and examples can be found in the 'docs' directory of this repository.