PHP Classes

PHP Generate Memorable Password: Generate random passwords from words of a RSS feed

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 221 All time: 8,239 This week: 116Up
Version License PHP version Categories
pprandpass 1.0.0GNU General Publi...5PHP 5, Security


This class can generate random passwords from words of a RSS feed.

It can retrieve a RSS feed from a given URL and extracts the list of words in the feed items.

It picks one random word from the RSS feed as basis of a given password to be generated.

The required word length, number of words and the url to read from are configurable parameters.

Innovation Award
PHP Programming Innovation award nominee
February 2017
Number 11
Many sites generate passwords for users that want access for the first time or recover a lost password. However, many times those passwords are made of many random characters that are hard to remember.

This class provides a more user friendly solution by using real words as basis to generate random passwords. These words are taken from test in RSS feeds, so they are easy to remember because they are real words, not a random set of text characters.

Manuel Lemos
Picture of Chris Jeffries
  Performance   Level  
Name: Chris Jeffries <contact>
Classes: 6 packages by
Country: United Kingdom
Age: 75
All time rank: 2177101 in United Kingdom
Week rank: 301 Up9 in United Kingdom Up
Innovation award
Innovation award
Nominee: 3x


<title>ppRandPass example</title>
<h1>ppRandPass example</h1>
include ('ppRandPass.class.php');
$oPass = new ppRandPass();
$oPass->url = '';
//The url of a constantly changing RSS feed
//The remaining properties need not be set if you are happy with the defaults
$oPass->minlength = 4; //Only words of 4 letters or more chosed (default is 5)
$oPass->maxlength = 6; //Only words of 6 letters or less chosen (defualt is 8)
$oPass->numwords = 3; //Three words randomly picked from list (default is 2)
$oPass->discard_front = 2; //The first two words retrieved will not be used (default is 0)
$oPass->discard_back = 3; //The last three words retrieved will not be used (default is 0)

echo "Randomly generated password:<b> {$oPass->password} </b>";

  Files folder image Files  
File Role Description
Plain text file ppRandPass.class.php Class ppRandPass source
Accessible without login Plain text file ppRandPass.example.php Example ppRandPass example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,239
This week:116Up