Password Generator

Post your working scripts, libraries and tools.
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Password Generator

Post by jNizM » 08 Oct 2021, 03:31

Password Generator
Small Password Generator (written in AutoHotkey)


Source
Password Generator (GitHub)


Download (precompiled executable)
Image


Examples
Image


Features
- Uppercase characters
- Lowercase characters
- Digits (Numbers)
- Minus (-)
- Space ( )
- Underline (_)
- Brackets characters
- Special characters
- Include own characters
- Exclude look-alike characters
- Exclude own characters


Test environment
Image Image


Contributing
- thanks to AutoHotkey Community


Inspired by
- KeePass Password Generator by Dominik Reichl


Questions / Bugs / Issues
If you notice any kind of bugs or issues, report them here. Same for any kind of questions.


Copyright and License
Image
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 08 Oct 2021, 03:34

Todo
- Fix bugs
- Optimize code
- Whatever


Changelog

Code: Select all

2021-10-08 Fixed missing char
2021-10-08 Initial
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Password Generator

Post by joedf » 08 Oct 2021, 16:21

Pretty neat, I like it. :+1:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Password Generator

Post by swagfag » 08 Oct 2021, 18:40

is that what it looks like on win11?
yikes, microsoft hasnt treated those win32 editboxes kindly. seems like a very mac-y look and feel

otherwise, great job

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Password Generator

Post by kczx3 » 08 Oct 2021, 20:20

Yeah also the UpDown controls got zero love…

User avatar
HiSoKa
Posts: 480
Joined: 27 Jan 2020, 15:43

Re: Password Generator

Post by HiSoKa » 10 Oct 2021, 14:06

Thank you for sharing.
How i can get that code after compile (.exe extension).
Because i have ahk 1.1 version...

User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Password Generator

Post by joedf » 10 Oct 2021, 19:19

@HiSoKa You mean the source code for this? https://github.com/jNizM/password-generator/blob/main/src/PasswordGenerator.ahk
Or how to decompile in general?
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
HiSoKa
Posts: 480
Joined: 27 Jan 2020, 15:43

Re: Password Generator

Post by HiSoKa » 11 Oct 2021, 01:36

@joedf I don't want the source code, because I have Ahk 1.1 and I can't run it,
That's why I want this code with (.exe) extension so that I can run it on my device.
Sorry for my bad language

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 11 Oct 2021, 03:00

Precompiled Version @Intital Post
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

User avatar
HiSoKa
Posts: 480
Joined: 27 Jan 2020, 15:43

Re: Password Generator

Post by HiSoKa » 11 Oct 2021, 03:15

Thank you so much, this will help me a lot

User avatar
Chunjee
Posts: 1400
Joined: 18 Apr 2014, 19:05
Contact:

Re: Password Generator

Post by Chunjee » 12 Oct 2022, 14:16

"Exclude look-alike characters"

Wish VINs and stuff followed this fancy tech

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 13 Oct 2022, 01:19

Chunjee wrote:
12 Oct 2022, 14:16
Wish VINs and stuff followed this fancy tech
What do you mean with "VINs"?
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

User avatar
Chunjee
Posts: 1400
Joined: 18 Apr 2014, 19:05
Contact:

Re: Password Generator

Post by Chunjee » 13 Oct 2022, 10:49

Vehicle Identification Number
image.png
image.png (157.13 KiB) Viewed 2758 times

Often they are are stamped in metal and don't have a high resolution

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: Password Generator

Post by LAPIII » 17 Mar 2023, 17:11

I want to combine both buttons, but I don't know where to start. Can you help please?

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 19 Mar 2023, 05:09

LAPIII wrote:
17 Mar 2023, 17:11
I want to combine both buttons, but I don't know where to start. Can you help please?
Put this A_Clipboard := MainEDT02.Text at the end of the Event_Generate(*) function
Or change MainEDT02.Text := PW_GENERATED to A_Clipboard := MainEDT02.Text := PW_GENERATED
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: Password Generator

Post by LAPIII » 24 Mar 2023, 20:36

How did you come up with the global variables? I'd like to know what they mean.

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 25 Mar 2023, 08:49

LAPIII wrote:
24 Mar 2023, 20:36
How did you come up with the global variables? I'd like to know what they mean.
From the Ascii Table -> https://ss64.com/ascii.html
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: Password Generator

Post by LAPIII » 25 Mar 2023, 11:10

Perhaps you could help me with my script. I had changed line 63 to:

Code: Select all

MainCB11 := Main.AddEdit("xs+15 y+0 w470", " " . "." . "``'" . '%#^"()[]{}<>|/\~-_=+;:,')
I'm still getting a period in my passwords. I made sure to remove 46 from the global variables. I tried putting the period into the other strings, using single quotes, moving the string, and "``."

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Password Generator

Post by jNizM » 28 Mar 2023, 07:44

If I set the "punctuation mark" . (Ascii #46) under "Exclude the following characters", then I never get this character generated either.
So what exactly is the mistake?
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: Password Generator

Post by LAPIII » 09 Apr 2023, 15:14

Sorry, did you mean that if you write . in the line with MainCB11? My problem is that if I can't just add the . in that line because order matters for some reason.

Post Reply

Return to “Scripts and Functions (v2)”