Use the git implementation of SHA-1 (Mandeep Singh Baines)