Generate the sha1 hash code of a file