It feels like you could overcome this by awarding a patent to both, if they can prove the research was independent?
If someone publishes the paper, you can then publish the files that resulted with the dropped hash and therefore prove you had certain progress of the work at a certain time.
Basically, if you could show that you had already made significant progress before the publication date, then you might be granted the patent as well.