Implemented complete sha1 algorithm