davidwood/node-password-hash — pull request #5 by lynns (2012-03-13 20:07:07+00:00)
Title: added an 'iterations' option

Based on the password hashing recommendations found here http://www.jasypt.org/howtoencryptuserpasswords.html I updated this code to allow the user to specify the number of times the hashing algorithm should be applied by setting an iterations option. The side effect of this change is that the tokens in the final hash go from 3 parts to 4 (to include the iteration count). I made the default iterations be 1 and provided a function that will take an old 3 part hash and convert it to a 4 part hash with iterations set to 1 so everything should be backward compatible.