Generate sha1 hash code of a file