Added a salt to the iterateAndHash method