News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Better Understanding Random
April 26, 2013 @ 11:52:49

On PHPMaster.com there's a new tutorial talking about randomness in PHP, what it is and some of the things it can be used for.

Use of random values is very important in the computer security field. It is crucial in computer programming for development of secure systems that are not vulnerable to malicious subversion. Cryptography relies on random value's generation and their reproducibility for unpredictable output that is core for security of any system. Random values are fundamental for secure coding practices and PHP highly makes use of them for security. You will find them used in all libraries and frameworks and almost all codes rely on them for the generation of tokens, salts and as inputs for further functions.

He talks about the important of good random numbers and some of the common uses for it including generating salts and unique identifiers. He mentions the "pseudorandomness" of PHP's generators and how they're seeded to help increase this randomness. He finishes up the tutorial with some suggestions and language features for creating "as random as possible" values like using "/dev/urandom" on Linux-based systems.

0 comments voice your opinion now!
random language feature pseudorandom uses tutorial

Link: http://phpmaster.com/better-understanding-random

blog comments powered by Disqus

Similar Posts

DevShed: Creating the Blog Script for a PHP/MySQL Blogging System (Part 2)

The Bakery: Nine New Tutorials, Helpers and Plugins for CakePHP

NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP

DevShed: Working with Multiple Template Files to Separate Logic from Presentation (Part 3)

PHPFreaks.com: Template based document generation using LiveDocx and Zend Framework


Community Events











Don't see your event here?
Let us know!


composer facebook overview example framework package release hhvm security component introduction language application symfony2 opinion install unittest podcast code hack

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework