Enhanced version of dd for forensics and security. More information: https://dcfldd.sourceforge.net/.
dcfldd if=/dev/disk_device of=file.img hash=sha256 hashlog=file.hash
dcfldd if=/dev/disk_device of=file.img hash=sha512|sha384|sha256|sha1|md5 hashlog=file.hash hashwindow=1G