Simplified digest reporting, changed digest to return int from hex-based str.