generateHash while testing as well
hash alternate key