adding digest helper utility