I'm testing file transfer methods (particularly to a SFTP remote).
In particular FileZilla does not detect corrupted files.
Use the above script to corrupt a remote file as a test.
If you are transferring files with rclone (https://rclone.org/)
using the --checksums
argument it will detect the fault and re-transfer
the corrupt file.