Implemented digest creation