Modified werkzeug's method to use sha512 instead of sha1. This also implies that I had to augment the size of the field in in users table. So it will be necessary to augment the size of that field in existing deployments.