Jason Lee Hayes
Active member
- Local time
- Today, 16:36
- Joined
- Jul 25, 2020
- Messages
- 196
Hi,
I am trying to increase security with regards password allowed to be used..
If the user chooses a password i have the following requirement check which works fine:-
Have at least 8 characters in length
Must have at least 2 letters (a,b,c...)
Must have at least 2 Numbers (1,2,3...)
Include both uppercase & lower case characters
Must include a special character
I also have a random password generator routine which also produces passwords conforming to the restrictions above...
What i also would like but not sure how to go about it is:
The password must not contain 4 consecutive characters (e.g. "1111", "1234", "abcd" )
Maybe using Regular Expression and a check on the increment within the ASCII table but not sure.
Anyone done something similar that could help..
Thanks in advance
I am trying to increase security with regards password allowed to be used..
If the user chooses a password i have the following requirement check which works fine:-
Have at least 8 characters in length
Must have at least 2 letters (a,b,c...)
Must have at least 2 Numbers (1,2,3...)
Include both uppercase & lower case characters
Must include a special character
I also have a random password generator routine which also produces passwords conforming to the restrictions above...
What i also would like but not sure how to go about it is:
The password must not contain 4 consecutive characters (e.g. "1111", "1234", "abcd" )
Maybe using Regular Expression and a check on the increment within the ASCII table but not sure.
Anyone done something similar that could help..
Thanks in advance