Purpose: Restrict to Create / Alter logins with blank passwords irrespective of "Enforce password security" enabled / disabled.
Execute the above script . Try to Create / Alter password with a blank password. It will not allow you to create the same.
If anyone has a better solution, then please free to contact me.