Restricted hashcompare to misc other
centralised common provider code into the hashcompare library