I have a user database with sha256 hashed password fields.
Now I wish to update this with phpass to add the flavour of salt.
How would I do this the right way?
I believe I have to update the field when the user does the next login, right?
How would I check if this has already been done for the specific user?
Right now I check if the field contains ‘$P$’, but it doesn’t look right to me.
Thx in advance
I’d go for a similar approach but with a twist. Create a column (TINYINT) default 0. When the user updates their password, set it to 1.
Less extra data in the database then another column.