function to extract last seven digits of sha1sum