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 This week: 1All time: 9,066 This week: 560Up
Version License PHP version Categories
password-generate 1.0GNU General Publi...5.6PHP 5, Text processing
Description 

Author

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: 334565 in Iran Iran
Week rank: 411 Up4 in Iran Iran Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php
 
/**
 * <name>Generate powerfull password class</name>
 * <author>Akbar Amani </author>
 * <email> amania1364@gmail.com </email>
 */
?>
<span>get password through ajax</span>
<a href="ajax.html"><b>Ajax Mode<b/></a>
<br />
<br />
<br />
<?php
include_once('PassGenerate.php');

// 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
$PassGen->SetPassLen(15);

// 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  
 0%
Total:151
This week:1
All time:9,066
This week:560Up