I want to allow using special chars in password, however I would like to know: is it safe to use untouched password from $_POST
and then store its hash in the database?
Like This:
password_hash($_POST['password'], PASSWORD_BCRYPT)
and
password_verify($_POST['password'], $hashFromDatabase)
Username would be validated for alphanumeric, and both stored in database via PDO?