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: 222 All time: 8,244 This week: 571Up
Version License PHP version Categories
pprandpass 1.0.0GNU General Publi...5PHP 5, Security
Description 

Author

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: 76
All time rank: 2175100 in United Kingdom
Week rank: 411 Up12 in United Kingdom Up
Innovation award
Innovation award
Nominee: 3x

Example

<!DOCTYPE HTML>
<head>
<title>ppRandPass example</title>
</head>
<body>
<h1>ppRandPass example</h1>
<?php
include ('ppRandPass.class.php');
$oPass = new ppRandPass();
$oPass->url = 'http://feeds.bbci.co.uk/news/world/rss.xml#';
                          
//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>";
?>
</body>
</html>


  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  
 0%
Total:222
This week:0
All time:8,244
This week:571Up