Password Generator

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Password Generator are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox Caution


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Password Generator
Summary Adds a 'Generate' button next to the password field on multiple pages.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 07 Mar 2023
Download link For
TNG 14.0

Password_generator_v14.0.0.3a.zip
For
TNG 13.0

Password_generator_v13.0.0.3a.zip
For
TNG 12.0

Password_generator_v12.3.0.3.zip
For
TNG 8.0

Password_generator_v8.1.0.zip
Download stats
Author(s) Bart 'Roebie' Degryse (deceased)
Homepage Password Generator (This page)
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 14.0.0.3a
Min TNG V 8.0
Max TNG V n.c
Files modified
admin_edituser.php
admin_newuser.php
ajx_editprofile.php
genlib.php
newacctform.php
languages/Dutch-UTF8/cust_text.php
languages/Dutch/cust_text.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
Added files
password_generator/password_generator_1.0.0a.js
TNGroot/js/password_generator.js
Related Mods
Notes

Purpose of the mod

Adds a 'Generate' button next to the password field on multiple pages. The TNG v8 version of the mod applies to TNG 8.0.2 but should work with 8.0.0 and 8.0.1 too (although I didn't test it). The TNG v12 version of the mod applies to TNG 12.3 but probably works with TNG v12.x and above. It can probably be run with TNG v11x.

Developer

This mod was developed by Bart 'Roebie' Degryse (deceased). Current support by Michel Kirsch from Charleroi - Hainaut - Belgium.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site

Revision History

Mod Version TNG Version Date Contents
14.0.0.3a 14.0 07 Mar 2023 Limit use of special characters.
14.0.0.3 14.0 16 Jan 2023 For TNG 14 - Add Dutch language. Fix a trailing code. Both thanks to Rob Severijns.
13.0.0.3 13.0 28 Sep 2020 Add generate button on multiple forms where it is necessary.
12.3.0.3 12.3 28 Sep 2020 Add generate button on multiple forms where it is necessary.
12.3.0.2 12.3 15 Sep 2020 Updated for TNG V12
Added the EDIT option.
9.0.0.0 9.0 06 Feb 2012 This version is LOST. If someone have the zip file of this version, he can send it to me...(see mail above)
8.1.2 8.1 18 Nov 2010 Initial config file release

Conflicts and Issues

With vxx.x.x.3 versions, it is preferable not to use special characters to avoid generating unusable passwords, especially those generated with the characters $ > / ' " \

The .zip and .cfg file for TNG 9, 10, 11, and 12.0 is not available on the TNG Wiki. If anyone has a copy please contact Michel MyMail.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and any tables if created, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Visualization

The following screen captures show the 'Add New User' page without and with the mod installed.

Without the mod
With the mod installed
Without the mod With the mod installed

Password specifics

TNG v9+

The generated password will consist of lowercase and uppercase characters and numbers and will be 8 long. You can however change this by using the EDIT button in the Mod Manager. The EDIT button

TNG v8

The generated password will consist of lowercase and uppercase characters and numbers and will be 8 long. You can however change this by editing the config file.

The end of line 25 looks like this

...password.value = getPassword();">

This getPassword() function takes 10 optional parameters however.

Parameter Description Default value
(1) length The length of the generated password 8
(2) extraChars Here you can provide a set of characters to use in generating the password. They can always be used regardless of the values of the following parameters.

These special chars are already included : `~!@#^&*()-_=+[{]}|;:,<.? and the space sign. It is NOT recommended to use these 6 chars $ > / \ ' and ".

(empty)
(3) firstNumber The first character of the password can be a number true
(4) firstLower The first character of the password can be a lowercase character true
(5) firstUpper The first character of the password can be a uppercase character true
(6) firstOther The first character of the password can be a special character false
(7) latterNumber From the second character of the password on a number can be used true
(8) latterLower From the second character of the password on a lowercase character can be used true
(9) latterUpper From the second character of the password on a uppercase character can be used true
(10) latterOther From the second character of the password on a special character can be used (set on 0 means 'never use special characters') false

The defined sets of characters are:

character set characters
number 0123456789
lowercase abcdefghijklmnopqrstuvwxyz
uppercase ABCDEFGHIJKLMNOPQRSTUVWXYZ
other/special `~!@#^&*()-_=+[{]}|;:,<.?

Some examples:

  • A five character password starting with an uppercase and having all characters but numbers
    ...password.value = getPassword(5,'',false,false,true,false,false,true,true,true);">
  • A five character password starting with an uppercase and having all characters but specials
    ...password.value = getPassword(5,'',false,false,true);">
    In this example you can see that you can omit variables for which you want to use the default value. You only have to provide values for all parameters upto the last non-default one (in this case the fifth parameter)
  • A six character password consisting of numbers and the uppercase characters A to E
    ...password.value = getPassword(6,'ABCDE',true,false,false,false,true);">
    Note that ABCDE can appear in all positions.


Finally note that the default parameter values don't produce a strong password but one that can be remembered by most people (possibly with some excercise). To have a strong password you should use at least

...password.value = getPassword(14,'',true,true,true,true,true,true,true,true);">

Languages

English, French and Dutch are included with the Mod.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Genealogy of the HOW family Justin How Public/Private 14​.0​.0​.3a See Here EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
Your Roots are Showing Harold Craswell Public/Private See Here See Here EN