So I am hashing passwords to a database using the Rcfc2898DeriveBytes class in .NET
Everything is working fine for hashing and storing both the final hash and the salt.
However, I am having an issue in figuring out to store the number of iterations that the class runs through when hashing the password.
After Googling, I have seen only that it should be stored in front of the password hash but I am unsure how to go about this in a way that would make the number retrievable in case I were to change the number later (which without storing the iterations, the change would break the old passwords).
I see the bcrypt will do this all for you but I don't have the luxury of added a library to the project.
What is the best way to store this number and how would I go about doing that so it is retrieveable and not just lost in the hash when stored (how would I seperate it from the hash once I get it back)?
Thanks for any advice and information ahead of time!