Random Password - PHP
-12
This is a quick and easy method to generate a somewhat random password. This simply generates the MD5 hash for the integer returned by the time() function and then truncates it to the specific length.



Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
cyberhitesh
omarabid
richard123
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
bertheymans
SCoon
wiz1705
If you want entropy, don't use md5() as an entropy GENERATOR. Use the pseudo-random number generator for that. Now, if you were to take the md5 of a random number (and the PRNG was seeded with the time), you'd be a bit more secure. If you took the md5 of data read from /dev/random, more secure yet. However, you're still not escaping the fact that hexadecimal is a far cry from sexaduple (?), the base-62 system that is a-zA-Z0-9, which is already considered insecure by just about everyone.
Basically, md5 doesn't GENERATE entropy, which is what you're using it for: it simply obfuscates. And as well, the md5 function doesn't produce STRINGS which constitute secure passwords, no matter what the entropy source happens to be.
I've got good news, and I've got bad news:
The universe is merely a figment of my imagination.
Now are you ready for the bad news?
Don't get me wrong. I love your idea but it just isn't as good as what we already have.
Much better to choose a random password from a-z, A-Z, 0-9 & special characters. Assuming 10 useable special characters you have 72 choices per character giving 1.05312E+65
possibilities for an 8 character password. 2E+55 more possibilities. A huge difference.