updated conversion of sha byte to hexdigest