Modified XOR hash mask