How does changing a file's MD5 work?
The tool appends one ASCII space byte (0x20) to a new copy. Because the binary contents differ, MD5 and other whole-file hashes such as SHA-1 and SHA-256 will also change in normal use. The original file is never overwritten.