I used years ago a java (spring) framework for hashing passwords and store them in a database. But I can't remember the name.
The advantage was, that it didn't only stored the hashed value with salt etc. but also the information about the used algorithm and and the configuration like {'alg':'bcrypt', { 'salt':'dsjhjdsfh', 'iter':'356178372', ..}, 'hash':'ju3j7HJghkdfk'}
So it was possible to change the algorithm, so new passwords were using them automatically, old password could be verified automatically with the old algorithm, but after successful validation they were updated with the new algorithm.
Does this framework still exists, because I was searching really hard, but had no luck.