I don't know, is 1111 more difficult to hack than 1234 ?
In 2013, based on a collection of 3.4 million passwords each containing four digits, the DataGenetics Web site reported that the most commonly used four-digit sequence (representing 11 percent of choices) was 1234, followed by 1111 (6 percent) and 0000 (2 percent).
From - The Mathematics of (Hacking) Passwords - Scientific American
So, 1234 is more common than 1111.
That's not the question, but eliminating duplicate chars necessarily reduces the set of possibilities (that is, possible permutations without repetitions).
Enterprise level stuff
:
And let me tell you that if you get caught (which you can if the owner is smart enough) then you'll be in trouble....
Most hackers use brute force to break passwords....which is also illegal
PIN code (4 out of 10 digits: [0, 1, 2, ..., 9]):

As far as I remember (it's been a long time since I was in school). 
SafePasswords V2
An extension to create a random password.Made by Aditya Nanda💡 Current Version 2.0
📁 File Size 5.20 KB
📦 com.AdityaNanda.PasswordGenerator.SafePasswords
📅 Created On 2022-01-15
Method Blocks
GeneratePassword - Returns a Random String with special characters example:- GfVV<j&Dx9$(8o}Op%#e ,etc of any lenght you enter.NOTE:-Minimum Possible length is 4
➜ length input type number
This Update handles all these:
- include at least one lowercase letter
- include at least one uppercase letter
- include at least one number
- include at least one special character (often listed)
Credits:-
This docs is generated from AIX Docs - Cttricks. Hit
button if you liked this extension and feel free to comment below your reviews and suggestion.
Click here to download the extension.
Result:-

Good improvements, but:
You need to fix this, it also appears that there are spaces between each character ?
Your output

should return just:
eM_8DY3H3
Right-click on the image and click on "copy image." Select the previous image and use the paste command to replace the picture.
Both of them yes, in theory, the hacker can do a dictionary-based attack which would list both of the numbers 1234 and 1111, but in the case, as 1111 comes before another one, it's also sometimes more likely.
You are calling toString method on a list or array, you could join them before you return the output.
![]()
I would also suggest you go back to calling it PasswordGenerator
The word safe implies many things, you will need to justify this word if you continue to use it...
In any case, if the hacker has only 3 attempts to find the PW, it makes no sense to limit the number of possibilities (from 10000 to 5040 by excluding duplicates).
Ok i will change the name
I am just returning an array can you help me how can I use to string function i know how to use it but in extension IDE it's giving error
i don't know much about extension development (Beginner)
Fixed Square bracket result and name changed 
new name :- iPassGenerator
here is the new download link (download links are also updated in all above posts of V2 )
com.AdityaNanda.iPassGenerator.aix (5.2 KB)
Thanks to :-
@TIMAI2 @Anke @dora_paz
New Update Coming Soon!!
Here is hint:

suggestion -
add properties that can customize which characters to be used (means custom characters, digits and special characters)
And also remove solution to this topic or it will close 
