Add "get_sha1()" helper function.