When using the password_hash () function to generate a hashed password, is there a reason why I would like to use a prepared statement when pasting it into the database?
My assumption is that I do not need to use a prepared statement for the password, but for consistency this will not hurt to use it.
Additional question:
If I use the PASSWORD_DEFAULT parameter for the password_hash function, it will currently use the bcrypt algorithm, but in the future it may be replaced by another algorithm. Will the future algorithm use a single quote or some other character that could violate the SQL statement if I do not use prepared statements?
source
share