There is a specific hashdump module that is more up-to-date, no need to duplicate functionality (and code).