changed digest to a boolean hexdigest

hexdigest -> boolean(True/False)