Forgive me guys, I am completely new to password security and encrypting...
I am having problems comparing stored passwords that have been encrypted using php's crypt() function (using the blowfish hasing method) to a user's input. One way I have found I can compare the passwords is to store the salt used during encryption, to then encrypt the users input and compare this to the stored password.
Is this a secure way of doing things? Or is there a better (more secure) way of doing it?
Thanks.