I know this has been asked before, but I just want to make sure what I've got is up to date and secure for obvious reasons before we go live.
I've used this method to secure passwords:
'password' => password_hash($_POST['password'], PASSWORD_DEFAULT)."\n",
This is a user input form to create a new account. My understanding is this hashes the password and uses salt serverside for extra security. Am I right in thinking this or am I missing something?