January 3, 2009
20 Random Alphanumeric Passwords
The passwords:
No record is made of these passwords.
y9kvejvtCKMLnzT6FCk9 h8nsYgypgJjzPFTkQcDk WyPPSBhjdpKKHqJpu46T LRXHYWhf6amqJhCYuLM7 CadetJ7A9vrsdChvRXzL U6but9Nuefeo8DWmhojP Uso3EYAt6VuZ6jpkG9v3 FsucRCfcMrmotXH6qTXD qRCKEWQtPVsWs7KAe37s jPk8FgpEmcn4JYjgWM9K 8WozhMVT7fzzwvSYMNAc fSsMqfb3abndLVKjRA7n
Deprecated: Implicit conversion from float 2500569.9999999995 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 2500820.0000000005 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
YPoGdEunCkzNV2cWZKZt
Deprecated: Implicit conversion from float 2501380.0000000005 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 2501920.0000000005 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 2602920.0000000005 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 2603269.9999999995 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
z37dfr6jYLPaYYYjCne7
Deprecated: Implicit conversion from float 2604060.0000000005 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 2605140.0000000005 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
VqZ97forXscERyeDh6VF
Deprecated: Implicit conversion from float 2606260.0000000005 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 2606589.9999999995 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 2606840.0000000005 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
Pvoe3uuBym2M3wYnmqQ4
Deprecated: Implicit conversion from float 2607419.9999999995 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 2607709.9999999995 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 2607999.9999999995 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 2608500.0000000005 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
syW4Lm6Cm3qFsBPaK7hz
Deprecated: Implicit conversion from float 2617110.0000000005 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 2617419.9999999995 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 2617689.9999999995 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 2617979.9999999995 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
2mrGczUDyXLwNedbBdEa
Deprecated: Implicit conversion from float 2619079.9999999995 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 2619330.0000000005 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 2619929.9999999995 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
ZzUMawrYzXYr3oLmToVA
Deprecated: Implicit conversion from float 2620469.9999999995 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 2620720.0000000005 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 2620970.0000000005 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 2621260.0000000005 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 2621589.9999999995 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 2621879.9999999995 to int loses precision in /usr/home/crawberts/public_html/lab.artlung.com/web/password-maker/PasswordGenerator.php on line 43
FHq8kw94sTEgMHoQZyLV
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);