January 3, 2009
20 Random Alphanumeric Passwords
The passwords:
No record is made of these passwords.
Deprecated: Implicit conversion from float 1917320.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 1917609.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
2KUoJ6fJr6f63rgZ9a7x
Deprecated: Implicit conversion from float 1918700.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 1918999.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 1919540.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 1919839.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
t6Cqad8ATSdzumJ3YExZ cBjVEnAmNxV3L6Yqhr8m HyBqQCDDytkPqKaFQpv3
Deprecated: Implicit conversion from float 1923130.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 1923449.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 1923700.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
qkNYQQjzEL4QcKdDUYxN
Deprecated: Implicit conversion from float 1925350.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 1925669.9999999998 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
CnKKJdMRG4ayTUKF9FZx
Deprecated: Implicit conversion from float 1925929.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 1926460.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 1926779.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 1927030.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
YbTRX2NrXsDQrqFaEPCA DMZYFT4Ngv3Ed8aXXWkx hnetUS3AfbDKWWz3Hm68
Deprecated: Implicit conversion from float 1931180.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
vfTy3nk4cWNKPfKqJpUQ
Deprecated: Implicit conversion from float 1932329.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 1932599.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 1932850.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
JskakvccjtXSRnZbCeWy PuHV3CojLeGMjRYARTy8 ADsx9R7mJUKNBoeVeqa4 xJSawEaHbPLHcjQYqFN6 8aAKnGXqZyj2eZwcoYYe
Deprecated: Implicit conversion from float 1938950.0000000002 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
swGHwEvuzUmGL6rTmntc mfL8n4hsrGVPD28Qr8sd L8jd7bw777L9m82xwpES cUR8ZfYrHYGEaKZ9rZea A2dWNTMKz83DhyotBtC2
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);