use hexdigest instead of digest