Download and compare hash

Hello

I try to create a Script where all files of a directory get downloaded. I had the Idea, that Nextcloud may create a hash of the files. Is that true and is it possible to get such a hash, so I could compare it after download and check file integrity?