Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
murrain
· 13y ago · 0 comments
$password = str_shuffle((substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ'),0,3).substr(str_shuffle('abcdefghijklmnopqrstuvwxyz'),0,3).substr(str_shuffle('0123456789'),0,2).substr(str_shuffle('!@#$'),0,2)));
Comments
[–]
murrain
OP
13y ago
With that it will always contain 3 capital letters, 3 lower case letters, 2 numbers, and 2 punctuation.