Updated to use C-based implementation of SHA1