How do I get the MD5 sum of a directory’s contents as one sum?

listed in answer

How do I get the MD5 sum of a directory’s contents as one sum?
0 votes, 0.00 avg. rating (0% score)

ANSWER:

How about:

find   -type f -print0 | xargs -0 cat | md5sum

Summing all the contents of all the files?

(EDIT: Revised to deal with whitespace in filenames)

by sinelaw from http://unix.stackexchange.com/questions/35833