Calculate and compare MD5 for local and remote files