Use Hash algorithms with files

I’m looking for a code to use Hash algorithms (CRC32, MD5, SHAx) from files. The example delivered with Xojo uses a characters string which is different. I think you have to load the file into a MemoryBlock before convert it into text and hashing it. If anyone has a piece of code on the subject, thanks in advance.

Crypto.hash uses a memoryblock. Even if some functions take a string it doesn’t make a difference.