Calculates hashes for a file (MD5/SHA1