How to continuously keep the number of bcrypt rounds relevant to the current year's hardware?
问题 I saw a recommendation that the number of rounds be set to ($currentYear - 2000) to account for Moore's law, so that 2013 would be 13 rounds and therefore 2^13 total iterations. Of course, you need to take into account your own hardware to ensure it doesn't take too long (I saw 1 second recommended as "safe" for checking passwords/hashes, and 13 rounds falls around that mark on my current hardware). Does that sound reasonable for a social networking type of site? Or would I be setting myself