Hashing::needsRehash() method

A method to check if values like the cost-factor are still up to date. Comes in handy when you want to increase the cost factor in a year or two due to more powerful processors and want to automatically migrate hashes.