I'm using the crypt function in PHP to hash passwords, along with salt obviously. But I'm generating my salt by calling the md5 function over the date function. And every time the user logs in the salt gets regenerated.
Is any of this bad in any way? I am still relatively new to PHP (and webdev) and I'm trying to get my security right before I deploy this code.
$salt = md5(date('m/d/Y h:i:s a'));