Working SHA-1 implementation.