[3.2][3.3][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!
Get Involved
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: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

[3.2][3.3][RC] Random Password Generator

Post by HiFiKabin »

Extension Name: Random Password Generator Image Image
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 work 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
  • Language Pack fr, it, nl HERE
Extension Version: 3.2.0-RC6

Requirements: phpBB 3.2.0@dev and later

Supported Styles:
  • prosilver and most styles inheriting from prosilver
  • Styles pack we_universal HERE
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 Board or This Topic
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Random Password Generator

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

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: 53525
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [3.2][RC] Random Password Generator

Post by Brf »

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: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

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: 53525
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [3.2][RC] Random Password Generator

Post by Brf »

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: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

Demo links added to first post

Live Demo: HERE and HERE
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

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
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][RC] Random Password Generator

Post by 2600 »

Looks interesting. What kind of randomness are you using to create the password?
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][RC] Random Password Generator

Post by 2600 »

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
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

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
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][RC] Random Password Generator

Post by 2600 »

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 2600 on Sun Apr 14, 2019 8:23 am, edited 1 time in total.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][RC] Random Password Generator

Post by 2600 »

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.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6768
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Random Password Generator

Post by HiFiKabin »

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
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][RC] Random Password Generator

Post by 2600 »

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?
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:

Return to “Extensions in Development”