I have this line to make a random password based on the current time, encrypted with the md5 encryption, shortened to 6 characters.
$randompass = substr(md5(time()),0,6);
If I echo $randompass everything looks good (it shows 46d520), but if I insert the password into a MySQL database it get odd. I get this:
I don’t know what the star means, but it must be that all isn’t shown or something, because that password (star or not) doesn’t work either :-/