DEV Community

Adam Mukhriz
Adam Mukhriz

Posted on

Password Generator

Just a simple password generator for you according to your own length

Discussion (4)

Collapse
getsec profile image
Nathan Getty

Probably should move to pass phrases.

Four random words with spaces. As long as you have an upper a lower and some spaces, you have a pretty good password.

10 digits: 0123456789
26 lower case letters: abcdefghijklmnopqrstuvwxyz
26 upper case letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
33 special characters: `~!@#$%&*()-_=+[]{}|;':",./<>?

So you have a character space of 95 unique characters per length.
So, lets say you have a 16 character password. 1695 = 2.46e114 a whole lot of possibilities. So, it should take that 185730513190 years roughly to brute force. Someone please let me know if I'm wrong.

Collapse
shubhamkhandare profile image
Shubham Khandare

That's a very weak password generator. No special characters, no upper case, no minimum length check.

Collapse
highcenburg profile image
Vicente G. Reyes

Why not suggest an improvement aside from side commenting on his code? He's still a student.

Collapse
shubhamkhandare profile image
Shubham Khandare

Sorry if I sound rude but if you see it I suggesting changes.