You could use an additive hash function, as Salem suggested.