January 3, 2009
20 Random Alphanumeric Passwords
The passwords:
No record is made of these passwords.
Deprecated: Implicit conversion from float 1844330.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1844610.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1844880.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
dh6FvHMRsRsE8uGGHAAf
Deprecated: Implicit conversion from float 1845700.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1846810.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1847100.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
VDUCK9MoshA9arkDnmQR
Deprecated: Implicit conversion from float 1847920.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1848239.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1848499.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
22EfXr3mfTPu2Nd9T66u
Deprecated: Implicit conversion from float 1849040.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
U4ZJagX9KxJmyFuRYpKS FjhVzwGaegahvqpvTtqr sqSGXrSj6KESG3VZwwuh
Deprecated: Implicit conversion from float 1853490.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
vTEP6GTZQQCB2TCmR2Lz
Deprecated: Implicit conversion from float 1854580.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1854899.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1855150.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
SvUbNPF9nAnGVGXYD4J8
Deprecated: Implicit conversion from float 1856800.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1857119.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Era4K9a66MbbHE8MTWCy Cw3aDC3TmyS7oFpEQA2W wzGkk4cS4jVr2Hm9xawo
Deprecated: Implicit conversion from float 1861810.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
MPvLchTQWV6VxqoyqWPS
Deprecated: Implicit conversion from float 1862080.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1862669.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Deprecated: Implicit conversion from float 1862929.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
DaC6VDYPqsdUWxTPPdZX
Deprecated: Implicit conversion from float 1863740.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
zGmxNVWdgDNDbX348waS ryKodwTndm7pqTr4ztyf P84GUBdkFGxfmPW7DsLf dQsov4ug2HJZFbcv6paH jZ7gb86VU2aPZNwYE9Cv 7nTZkFUwokK7CkvS4KLe x6YRX9HThCjqPLhgschz
The code for the class
<?php
/**
* Class PasswordGenerator
*
* @category PHP
* @package Classes
* @author Joe Crawford <joe@artlung.com>
* @license GPL 2.0+ - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* @version Release: 1.0
* @link https://artlung.com/
* @since 2024-12-03
*/
class PasswordGenerator
{
public static $letters = "2346789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnopqrstuvwxyz";
public static $length = "20";
public $letters_array;
/**
* PasswordGenerator constructor.
*/
function __construct()
{
$this->letters_array = array();
for ($a = 0; $a < strlen(self::$letters); $a++) {
$this->letters_array[] = self::$letters[$a];
}
}
/**
* Make password
*
* @return string
*/
function make(): string
{
$password = '';
for ($i = 0; $i < self::$length; $i++) {
srand((float)microtime() * 10000000);
$password .= $this->letters_array[array_rand($this->letters_array)];
}
return $password;
}
/**
* Print one password
*
* @return void
*/
function printOne()
{
print $this->make();
}
/**
* Print many passwords
*
* @param $num
*
* @return void
*/
function printMany($num)
{
for ($i = 0; $i < $num; $i++) {
$this->printOne();
print "\n";
}
}
}
How to invoke the class
$PG = new PasswordGenerator(); $PG->printMany(20);