#19 make toDigestResponse