[3.2][RC] Random Password Generator

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

[3.2][RC] Random Password Generator

Post by HiFiKabin » Thu Apr 04, 2019 4:07 pm

Extension Name: Random Password Generator
Author: HiFiKabin

Extension Description: Adds a 20 character Random Password Generator to the Registration Page and Edit Account Settings Page of the UCP as well as via a link in Quick Links. Should the user have JavaScript disabled the Password Generator will not wouk and is hidden from view.

Note:
  • The generated password is created from at least one each of the following:-
    • Upper Case Letters.
    • Lower Case Letters.
    • Numbers 0-9
    • 18 "special characters"
    That gives a total possible different passwords options of:-

    ((26 + 26 + 10 + 18)¹⁶) x 26 x 26 x 10 x 18 which equals 3.429E+36

    Thats 3,429 followed by 33 0's which is 3.429 Sextillion (UK definition)

    To put that number into perspective, the odds of winning the UK Lottery are 1 in 45,057,474
Language: EN

Extension Version: 3.2.0-RC4

Requirements: phpBB 3.2.0@dev and later

Supported Styles:
  • prosilver and styles inheriting from prosilver
Screenshots:

Image

Image

Image


Live Demo: HERE and HERE

Options: Here

Download: HERE


Installation:
  • Download the latest release and unzip it.
  • Upload the folder hifikabin to root/ext/ and enable it in the ACP

Support:

The contact us link at the bottom of this Forum or This Topic

User avatar
david63
Registered User
Posts: 16330
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Random Password Generator

Post by david63 » Thu Apr 04, 2019 4:44 pm

HiFiKabin wrote:
Thu Apr 04, 2019 4:07 pm
Thats 457 followed by 92 0's which is 45,700 Quindecillion (UK definition)

I think you will agree, thats a lot of possible passwords.
I cannot remember the ones I have so I have no chance with all of those ;)
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Thu Apr 04, 2019 4:48 pm

david63 wrote:
Thu Apr 04, 2019 4:44 pm
I cannot remember the ones I have so I have no chance with all of those ;)
Thats what Password managers are for. :mrgreen:

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51785
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [3.2][RC] Random Password Generator

Post by Brf » Thu Apr 04, 2019 5:25 pm

HiFiKabin wrote:
Thu Apr 04, 2019 4:07 pm
(26x26x10x8)²⁰ which equals 4.57E+94
I think you mean
(26 + 26 + 10 + 8)^ 20 which equals 7.979E+36

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Thu Apr 04, 2019 5:48 pm

Brf wrote:
Thu Apr 04, 2019 5:25 pm
HiFiKabin wrote:
Thu Apr 04, 2019 4:07 pm
(26x26x10x8)²⁰ which equals 4.57E+94
I think you mean
(26 + 26 + 10 + 8)^ 20 which equals 7.979E+36
Blow me (or some such word) you are correct. I don't know why I had multiplication in my head. Thanks for the correction, I'll change it now (its still a bloody big number though)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51785
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [3.2][RC] Random Password Generator

Post by Brf » Thu Apr 04, 2019 5:50 pm

HiFiKabin wrote:
Thu Apr 04, 2019 5:48 pm
(its still a bloody big number though)
Indeed 8-)

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Thu Apr 04, 2019 6:14 pm

Demo links added to first post

Live Demo: HERE and HERE

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Fri Apr 12, 2019 11:07 am

3.2.0-RC2 now available.

Code tidied, The Password Generator will not work if the user has JS disabled and is hidden from view

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Password Generator in the ACP
  • Delete password folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP

User avatar
John connor
Registered User
Posts: 2186
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: [3.2][RC] Random Password Generator

Post by John connor » Sat Apr 13, 2019 6:18 am

Looks interesting. What kind of randomness are you using to create the password?

User avatar
John connor
Registered User
Posts: 2186
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: [3.2][RC] Random Password Generator

Post by John connor » Sat Apr 13, 2019 6:32 am

Clicking “Copy” will copy that password to your computers clipboard.
The word "computers" should be computer's.


HiFiKabin wrote:
Thu Apr 04, 2019 5:48 pm
Brf wrote:
Thu Apr 04, 2019 5:25 pm
HiFiKabin wrote:
Thu Apr 04, 2019 4:07 pm
(26x26x10x8)²⁰ which equals 4.57E+94
I think you mean
(26 + 26 + 10 + 8)^ 20 which equals 7.979E+36
Blow me (or some such word) you are correct. I don't know why I had multiplication in my head. Thanks for the correction, I'll change it now (its still a bloody big number though)
In the U.S, blow me is a sexual derogatory phrase. https://www.urbandictionary.com/define.php?term=blow+me

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Sat Apr 13, 2019 7:35 am

John connor wrote:
Sat Apr 13, 2019 6:18 am
Looks interesting. What kind of randomness are you using to create the password?
Its a psudo randomness created on the users computer. More than effective enough for this application IMHO
John connor wrote:
Sat Apr 13, 2019 6:32 am
Clicking “Copy” will copy that password to your computers clipboard.
The word "computers" should be computer's.
Of course it should :oops:
John connor wrote:
Sat Apr 13, 2019 6:32 am
HiFiKabin wrote:
Thu Apr 04, 2019 5:48 pm
Blow me (or some such word) you are correct. I don't know why I had multiplication in my head. Thanks for the correction, I'll change it now (its still a bloody big number though)
In the U.S, blow me is a sexual derogatory phrase. https://www.urbandictionary.com/define.php?term=blow+me
... but not in the UK

https://www.macmillandictionary.com/dic ... sh/blow-me

User avatar
John connor
Registered User
Posts: 2186
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: [3.2][RC] Random Password Generator

Post by John connor » Sun Apr 14, 2019 7:07 am

HiFiKabin wrote:
Sat Apr 13, 2019 7:35 am
John Connor wrote:In the U.S, blow me is a sexual derogatory phrase. https://www.urbandictionary.com/define.php?term=blow+me
... but not in the UK

https://www.macmillandictionary.com/dic ... sh/blow-me
I guess Popeye the Sailor Man always said, "well blow me down."

Do you guys still call a cigarette a fag? That's another derogatory term used in the U.S. for gay people, particularly of men.

It's really funny because you guys invented the damn English language, yet hear we tore it all to hell. :lol: Plus we have so many terms and what not for everything and like to shorten things.


Anyway, extension works thus far on my test site. What's your opinion on adding an option under the Extensions tab to set the password length or other variables? Can phpBB use high case characters? Is that a good idea? I use Truecrypt and in the manual it made mention of not using high case characters for some reason which I don't understand.
Location: Swearing at the PC, UK
:lol: Dito! Except in the U.S.

Edit-

In case you don't know, this is (I think) a high case character. ¼
Last edited by John connor on Sun Apr 14, 2019 8:23 am, edited 1 time in total.

User avatar
John connor
Registered User
Posts: 2186
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: [3.2][RC] Random Password Generator

Post by John connor » Sun Apr 14, 2019 8:12 am

Okay, found an issue I never noticed until now. It's how my username and password boxes get rearranged when the extension is activated. See images. I'm using the Win10 style here: viewtopic.php?t=2403406


Image


Image

This is on the index. You can see what the username and password boxes look like on my site clicking my Info. Though, the extension is not installed there atm. Only on my test site.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3999
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin » Sun Apr 14, 2019 8:15 am

John connor wrote:
Sun Apr 14, 2019 7:07 am
<snip>
Anyway, extension works thus far on my test site. What's your opinion on adding an option under the Extensions tab to set the password length or other variables? Can phpBB use high case characters? Is that a good idea? I use Truecrypt and in the manual it made mention of not using high case characters for some reason which I don't understand.
<snip>
¼ doesn't work (I know because I had to change a users name to name.5 from name ½ and the ½ was not accepted)

I had wondered about adding an ACP panel, but to be honest I don't see many people wanting to change things. If you do its a simple edit.


See HERE for options on the latest version

User avatar
John connor
Registered User
Posts: 2186
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: [3.2][RC] Random Password Generator

Post by John connor » Sun Apr 14, 2019 8:31 am

I think we posted at the same time. See my post above on an issue I found.

Thanks for the code explanation. I can now adjust to my max field. I guess from what I read, if someone uses the forgot password option, a temp password could be as long as your max password allowed, and by default that's 100 characters. Reading that I changed the max to 18. Though, I guess 20 isn't really that bad. I just have another forum and most users there use a smartphone and it would be a PITA for them to use such long passwords. Most probably don't know about Apps like Keepass2Andoid or other password safe Apps, or even Keepass for a computer. Love that program! I backup its database all over hell including on Blu-ray and DVD/RW every time there's something added to it. And my passwords are massive. :lol:

Okay, I'm code stupid, but I can understand that the characters used have to be between brackets [ ] How would I add those to the symbols that the script can pick from? Would there be any kind of mess up, or does it even matter so long as the symbols fall between brackets?

Post Reply

Return to “Extensions in Development”