Calculate MD5 or SHA256 file checksum  from macOS cli

brew install coreutils

md5sum ${filename} or sha256sum ${filename}