Idea – Using Machine Learning As Recognition Checksum For Texts?

A quick idea.

We use md5 or maybe SHA for verifying file integrities. I was wondering if machine learning could be used to do a similar task. Verify that a textfile is the same or undamaged.

So after training a network on a textfile. The idea is to differentiate or recognize it from other textfiles up to 99%.