How to recursively sha256sum a directory

This command will run sha256sum recursively on all files in a directory:

find . -type f -print0 | xargs -0 sha256sum

You can also pipe it into a file

find . -type f -print0 | xargs -0 sha256sum > recursive-sha256sum.txt