opening file in binary mode for hash function