Simple SHA-1 implementation for hashing a file