Iterate over file to generate md5 sum