passGenerator – Random passwords for PHP
Lot of times is required to generate a password for user or to protect just something. What I did is a really easy to use function that returns a generated password. Also have some configurations to make it more powerful.
Script Name: passGenerator
Version: 0.1
License: GPL v3
Description: Generates random passwords
Screenshot:
Installation:
Just download the .zip file , uncompress in your htdoc and try ;)
Support: forum.neo22s.com
Usage:
Actually there’s only 1 function to make it work properly, but in the example we see it working with a normal form.
The normal usage of the function would be something like this:
$pass=passGenerator(8);
This returns a password with non repeated values (char).
I we don’t mind about if there’s repeated values we should use it like this:
$pass=passGenerator(70,true);
This returns a password of 70 chars with possible repeated values.
Notes:
If you don’t allow repeated values you need to be careful that the key is always longer than the length, if not it will return an ERROR (controlled of course)
Related posts:

