Implement a basic sha1 library