Refactor to inject hash algorithm to allow for swapping it out to test other algorithms.