PHP Classes

PHP Password Generate: Generate random password text of given length

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 151 All time: 9,069 This week: 673Up
Version License PHP version Categories
password-generate 1.0GNU General Publi...5.6PHP 5, Text processing


This class can generate random password text of given length.

It takes a set of characters from a string and generate a random string from that set.

The generated string will have a given configurable length.

Picture of amani
  Performance   Level  
Name: amani is available for providing paid consulting. Contact amani .
Classes: 3 packages by
Country: Iran Iran
Age: 39
All time rank: 335166 in Iran Iran
Week rank: 271 Up8 in Iran Iran Up
Innovation award
Innovation award
Nominee: 2x


 * <name>Generate powerfull password class</name>
 * <author>Akbar Amani </author>
 * <email> </email>
<span>get password through ajax</span>
<a href="ajax.html"><b>Ajax Mode<b/></a>
<br />
<br />
<br />

// New the class to make Object
$PassGen = new PassGenerate();

// Set character set what we want create password from them
$AllChar = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^*()_';

// Set our new password length

// Get our new generated password with $AllChar variable, notice if $AllChar be equal null, The class use default character set
$NewPass = $PassGen->GetPass($AllChar);

// echo our password
echo 'your password is: <pre>'.$NewPass.'</pre>';

  Files folder image Files  
File Role Description
Accessible without login Plain text file ajax.html Data ajax example of password generate class
Accessible without login Plain text file example.php Example example of password generate class usage
Plain text file PassGenerate.php Class password generate class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,069
This week:673Up